
/* Atlas operations — parity components shared by automotive, salon, barber and beauty. */
.opsCard{background:#fff;border:1px solid #e2e9ee;border-radius:16px;padding:22px;min-width:0;box-shadow:0 2px 8px #112d4009}
.opsCardHead{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
.opsCardHead h3{font-size:17px;line-height:1.3;margin:0}
.opsActions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.opsBtn{min-height:32px;padding:7px 12px!important;font-size:12px!important}
.opsActive{background:#153644!important;color:#fff!important}
.opsBreak{margin-top:22px}
.opsForm{display:grid;gap:14px}
.opsForm .field{margin:0}
.opsForm .field input,.opsForm .field select,.opsForm .field textarea{width:100%}
.opsForm .btn{margin-top:6px}
.opsList{max-height:520px;overflow-y:auto}
.opsListItem{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 0;border-bottom:1px solid #e5edf1;min-width:0}
.opsListItem:last-child{border-bottom:none}
.opsListItem>div:first-child{min-width:0;word-break:break-word}
.opsListItem strong{font-size:13px}
.opsListItem .muted{font-size:12px;margin-top:4px}
.opsTextLink{border:0;background:none;padding:0;color:#168a78;cursor:pointer;text-decoration:underline}
.opsColorDot{display:inline-block;width:12px;height:12px;border-radius:50%;margin-right:8px;vertical-align:middle}
.opsAgendaControls{display:flex;justify-content:space-between;gap:12px;align-items:flex-end;flex-wrap:wrap;margin:14px 0}
.opsAgendaControls .field{min-width:145px;margin:0}
.opsCalendar{display:grid;border:1px solid #dde7ed;border-radius:16px;overflow:hidden;background:#fff}
.opsCalendar.day{grid-template-columns:1fr}
.opsCalendar.week,.opsCalendar.month{grid-template-columns:repeat(7,minmax(0,1fr))}
.opsDay{padding:12px;min-width:0;min-height:126px;border-right:1px solid #e6edf1;border-bottom:1px solid #e6edf1}
.opsCalendar.month .opsDay{min-height:125px;padding:7px}
.opsDay.isToday{background:#eaf7f4}
.opsDay.isOutside{opacity:.44}
.opsDayLabel{font-size:12px;color:#42566a;font-weight:700;padding-bottom:10px}
.opsDayEmpty{font-size:11px}
.opsAppointment{border-left:4px solid var(--opsStaffColor,#88aabd);background:#f5f8fa;border-radius:7px;padding:10px;margin:8px 0;font-size:12px;min-width:0}
.opsAppointmentTime{font-size:11px;font-weight:700;color:#148171;margin-bottom:4px}
.opsAppointment strong{display:block;word-break:break-word}
.opsAppointment .opsActions{margin-top:7px;gap:4px}
.opsAppointment .opsBtn{min-height:26px;padding:5px 7px!important;font-size:11px!important}
.opsCalendar.month .opsAppointment{padding:6px}
.opsCalendar.month .opsAppointment .opsActions{display:none}
.opsGoal{margin:14px 0 22px}
.opsProgress{height:9px;border-radius:8px;overflow:hidden;background:#e0e9ee;margin:12px 0}
.opsProgress>div{height:100%;background:#37ad97;border-radius:8px}
.opsWidgetControls{display:flex;gap:10px;flex-wrap:wrap}
.opsWidgets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.opsWidgets .opsCard{min-height:145px}
.opsWidgetChecklist{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.opsWidgetChecklist label{display:flex;align-items:center;gap:9px;font-size:12px}
.opsWidgetStat{font-size:30px;font-weight:800;color:#17354a;letter-spacing:-1.2px}
.opsWidgetSmall{font-size:12px;color:#748695}
.opsQuickActions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
@media(max-width:1100px){.opsCalendar.week,.opsCalendar.month{grid-template-columns:repeat(2,minmax(0,1fr))}.opsWidgets{grid-template-columns:1fr 1fr}}
@media(max-width:700px){.opsCard{padding:16px}.opsCalendar.week,.opsCalendar.month{grid-template-columns:1fr}.opsDay{min-height:75px}.opsCalendar.month .opsDay{min-height:75px}.opsAgendaControls .field{flex:1;min-width:0}.opsWidgets{grid-template-columns:1fr}.opsWidgetChecklist{grid-template-columns:1fr}.opsListItem{align-items:flex-start;flex-direction:column;gap:8px}}


/* Responsive dashboard icons and mobile shortcut navigation. */
.opsKpiGrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:12px;margin:0 0 22px}
.opsKpiTile{min-width:0;border:1px solid #e2eaf0;border-radius:17px;background:#fff;padding:18px;display:flex;flex-direction:column;align-items:flex-start;gap:5px;box-shadow:0 2px 12px rgba(12,35,48,.035)}
.opsKpiTop{display:flex;justify-content:space-between;width:100%}
.opsKpiIcon{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#e7f7f2;color:#167e6e;font-size:22px;font-weight:700}
.opsKpiValue{font-weight:800;font-size:clamp(19px,2vw,28px);font-variant-numeric:tabular-nums;line-height:1.3;overflow-wrap:anywhere}
.opsKpiLabel{font-size:12px;color:#506679;font-weight:650}
.opsKpiTile small{color:#7a8d9b}
.opsCustomizeGroup{margin:16px 0}
.opsCustomizeGroup h4{margin:0 0 12px}
.opsChoice{display:flex;align-items:center;gap:10px;min-width:0;border:1px solid #e5edf0;border-radius:11px;padding:10px}
.opsChoice>span:first-of-type{flex:1;min-width:0;overflow-wrap:anywhere}
.opsChoice input[type="checkbox"]{flex:none;width:18px;height:18px}
.opsOrderActions{display:flex;gap:3px;margin-left:auto}
.opsOrderActions button{border:1px solid #d9e4e8;border-radius:7px;background:#fff;width:34px;height:34px}
.atlasMobileDock{display:none}
@media(max-width:740px){
 html,body{max-width:100%;overflow-x:hidden}
 .shell .surface{padding:18px 14px calc(115px + env(safe-area-inset-bottom,0px));}
 .sidebar #nav{display:none}
 .sidebar .sidefoot{display:none}
 .topbar{min-height:56px}
 .page-title{gap:10px}
 .opsKpiGrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .opsKpiTile{padding:13px;gap:6px;border-radius:14px}
 .opsKpiIcon{width:36px;height:36px;font-size:20px;border-radius:11px}
 .opsKpiValue{font-size:clamp(18px,5vw,25px)}
 .opsKpiLabel{font-size:11px}
 .opsWidgetChecklist{grid-template-columns:1fr}
 .atlasMobileDock{display:block;position:fixed;left:0;bottom:0;right:0;z-index:100;isolation:isolate;font-family:inherit;pointer-events:none}
 .atlasMobileItems{display:flex;align-items:stretch;justify-content:space-around;gap:2px;padding:7px max(7px,env(safe-area-inset-right,0px)) calc(7px + env(safe-area-inset-bottom,0px)) max(7px,env(safe-area-inset-left,0px));background:#fff;border-top:1px solid #d9e5e9;box-shadow:0 -5px 23px rgba(15,39,56,.08);pointer-events:auto}
 .atlasMobileItems button{flex:1 1 0;min-width:0;max-width:120px;min-height:56px;border:0;border-radius:11px;color:#617383;background:transparent;display:flex;align-items:center;justify-content:center;gap:4px;flex-direction:column;font-size:11px;font-weight:650}
 .atlasMobileItems button.isActive{background:#e8f7f2;color:#157565}
 .atlasMobileDock svg{display:block;width:22px;height:22px;flex-shrink:0}
 .atlasMobileDrawer{display:none;pointer-events:auto;position:absolute;bottom:100%;left:9px;right:9px;max-height:min(65dvh,520px);overflow-y:auto;background:white;border:1px solid #dce8eb;border-radius:18px 18px 0 0;box-shadow:0 -16px 45px rgba(14,35,53,.20);padding:15px 14px 20px}
 .atlasMobileDrawer.isOpen{display:block}
 .atlasMobileDrawerTitle{font-weight:750;font-size:15px;display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
 .atlasMobileDrawerTitle button{border:none;background:#eaf0f2;width:34px;height:34px;border-radius:9px;font-size:24px;line-height:1}
 .atlasMobileMoreGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
 .atlasMobileMoreGrid button{background:#f5f8fa;border:1px solid #e3ecf0;border-radius:12px;min-width:0;min-height:77px;padding:12px 3px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px;font-size:11px;color:#344c5e}
 .atlasMobileMoreGrid button.isActive{background:#dff4ec;border-color:#9dd5c7}
 .atlasMobileLogout{margin-top:12px;width:100%;min-height:44px;border:1px solid #e1e8ed;border-radius:10px;background:#fff;color:#465b69;font-weight:650}
 .opsCard,.card{max-width:100%;min-width:0}
 .opsListItem{overflow-wrap:anywhere}
}
@media(max-width:345px){
 .atlasMobileItems button{font-size:10px}
 .atlasMobileMoreGrid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .opsKpiGrid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .opsKpiTile{padding:10px}
}


/* Mobile-first v2: reduce header chrome, prevent overlapping agenda filters,
   week as a compact selected-day view, month as actual 7-column calendar. */
.opsAgendaPageTitle{margin-bottom:15px}
.opsAgendaPageTitle h1{margin-bottom:3px}
.opsAgendaToolbar{display:grid;gap:13px;padding:16px;border:1px solid #e0e9ed;border-radius:16px;background:#fff;margin-bottom:15px}
.opsAgendaTopRow{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:9px}
.opsAgendaViewTabs{display:inline-flex;gap:3px;padding:4px;border-radius:12px;background:#f0f5f5}
.opsAgendaViewTabs button{border:0;background:transparent;border-radius:9px;padding:9px 16px;font-size:13px;font-weight:700;color:#59707e;min-height:42px}
.opsAgendaViewTabs button.opsActive{background:#fff!important;color:#137665!important;box-shadow:0 2px 5px rgba(15,43,49,.12)}
.opsNewBooking{min-height:42px;padding:10px 13px;font-size:12px}
.opsAgendaPeriod{display:flex;align-items:center;justify-content:flex-start;gap:9px;min-height:40px}
.opsAgendaPeriod>button:not(.opsAgendaToday){width:39px;height:39px;border:1px solid #e2e9ec;border-radius:11px;background:#fff;color:#245e5d;font-size:25px;display:grid;place-items:center;flex:none;line-height:1}
.opsAgendaPeriod strong{font-size:16px;min-width:0;color:#263b4b}
.opsAgendaToday{border:0;border-radius:9px;background:#e7f6f0;color:#177b65;font-weight:700;padding:9px 12px;margin-left:auto}
.opsAgendaFilters{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
.opsAgendaFilters label.field{min-width:0;width:100%;margin:0}
.opsAgendaFilters input,.opsAgendaFilters select{width:100%;max-width:100%;min-width:0;height:44px;padding:8px 10px}
.opsCalendar.day,.opsCalendar.week{grid-template-columns:repeat(7,minmax(0,1fr))}
.opsCalendar.day{grid-template-columns:1fr}
.opsCalendar.week .opsDay{min-height:145px}
.opsCalendar .opsDayLabel{width:100%;display:flex;flex-direction:column;align-items:flex-start;gap:4px;border:0;background:transparent;color:#576a79;padding:0 0 10px;min-height:42px;text-align:left}
.opsDayLabel strong{font-size:19px;color:#263b4b}
.opsCalendar .opsDay.isToday .opsDayLabel strong{color:#0a7c6d}
.opsWeekStrip{display:none}
.opsMonthWeekdays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border:1px solid #dce7ec;border-bottom:0;border-radius:14px 14px 0 0;background:#f4f8f9;overflow:hidden}
.opsMonthWeekdays span{text-align:center;padding:12px 0;font-size:12px;font-weight:750;color:#6c7e8c}
.opsCalendar.month{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border-radius:0 0 14px 14px;overflow:hidden}
.opsMonthDay{border:0;border-bottom:1px solid #e9eff1;border-right:1px solid #e9eff1;background:#fff;min-height:75px;padding:8px;display:flex;flex-direction:column;align-items:flex-start;gap:7px;color:#354d5c}
.opsMonthDay.isOutside{opacity:.38}
.opsMonthDay.isToday .opsMonthDayNumber{color:#087f69;font-weight:850}
.opsMonthDay.isSelected{background:#e8f7f1;box-shadow:inset 0 0 0 2px #5bb69a}
.opsMonthDayNumber{font-size:15px;font-weight:650}
.opsMonthCount{font-size:11px;font-weight:700;border-radius:12px;padding:3px 8px;background:#d8f1e8;color:#126a55}
.opsMonthSelection{background:white;border:1px solid #e1ebee;border-radius:16px;padding:16px;margin-top:12px}
.opsMonthSelectedHeader{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
.opsMonthSelectedHeader strong{font-size:16px}
.opsMonthSelectedHeader span{font-size:12px;color:#718395}
.opsCalendar.day .opsDay{min-height:110px}
.opsDayEvents{min-width:0}
.opsDayEmpty{padding:6px 0}
@media(min-width:741px) and (max-width:1280px){
 .opsCalendar.week{grid-template-columns:repeat(7,minmax(0,1fr))}
 .opsCalendar.week .opsDay{padding:7px}
 .opsCalendar.week .opsAppointment{padding:7px}
 .opsCalendar.week .opsAppointment .opsActions{display:none}
 .opsDayLabel strong{font-size:16px}
}
@media(max-width:740px){
 #appShell .sidebar{height:56px;min-height:56px;position:static;padding:8px 16px;display:flex;align-items:center;justify-content:flex-start}
 #appShell .sidebar .logo{padding:0;gap:9px;font-size:20px;letter-spacing:-.5px}
 #appShell .sidebar .logoMark{width:31px;height:31px;border-radius:10px;font-size:18px}
 #appShell .topbar{height:55px;min-height:55px;padding:7px 14px;gap:0;display:flex;align-items:center;flex-wrap:nowrap}
 #appShell .topbar .crumb{display:none}
 #appShell .topbar .top-actions{width:100%;min-width:0;display:flex}
 #appShell .topbar .selectBusiness{width:100%;min-width:0;max-width:100%;font-size:14px;height:39px;padding:7px 11px}
 #appShell .topbar #rolePill{display:none}
 #appShell .surface{padding:16px 13px calc(110px + env(safe-area-inset-bottom,0px))}
 #appShell .page-title{margin-bottom:14px}
 #appShell h1{font-size:26px;line-height:1.15;letter-spacing:-.75px}
 #appShell .page-title .muted{font-size:12px;line-height:1.45}
 .opsAgendaToolbar{padding:12px;gap:11px;margin-bottom:12px;border-radius:14px}
 .opsAgendaTopRow{gap:7px}
 .opsAgendaViewTabs{flex:1;justify-content:space-between}
 .opsAgendaViewTabs button{min-height:40px;flex:1;padding:7px 8px;font-size:12px}
 .opsNewBooking{width:100%;justify-content:center;min-height:43px;font-size:13px}
 .opsAgendaPeriod{flex-wrap:nowrap;justify-content:center;gap:5px}
 .opsAgendaPeriod strong{font-size:14px;flex:1;text-align:center;line-height:1.2}
 .opsAgendaPeriod>button:not(.opsAgendaToday){width:36px;height:38px}
 .opsAgendaToday{padding:9px;font-size:12px}
 .opsAgendaFilters{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:9px}
 .opsAgendaFilters input,.opsAgendaFilters select{font-size:16px;height:43px;min-width:0}
 .opsAgendaFilters .field{font-size:11px;gap:5px}
 .opsWeekStrip{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;margin-bottom:11px}
 .opsWeekStrip button{border:1px solid #e6eff1;background:#fff;border-radius:11px;padding:8px 1px;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:80px;color:#617689}
 .opsWeekStrip button span{font-size:10px;text-transform:uppercase;letter-spacing:.15px}
 .opsWeekStrip button strong{font-size:17px;font-weight:750;color:#284656}
 .opsWeekStrip button i{font-style:normal;font-size:10px;line-height:14px;min-width:17px;border-radius:9px;padding:0 4px;color:#126f5d;background:#cceee0}
 .opsWeekStrip button i.isEmpty{background:#e2e9ec;width:5px;min-width:5px;height:5px;line-height:5px;padding:0}
 .opsWeekStrip button.isSelected{border-color:#309b83;background:#e8f7f1}
 .opsWeekStrip button.isToday strong{color:#0b806a}
 .opsCalendar.day,.opsCalendar.week{display:block;grid-template-columns:1fr;border-radius:14px}
 .opsCalendar.week .opsDay{display:none}
 .opsCalendar.week .opsDay.isSelected{display:block}
 .opsCalendar.day .opsDay,.opsCalendar.week .opsDay.isSelected{border:none;min-height:110px;padding:14px}
 .opsCalendar.week .opsDayLabel,.opsCalendar.day .opsDayLabel{flex-direction:row;align-items:center;gap:9px;margin:0 0 5px}
 .opsCalendar.week .opsDayLabel strong,.opsCalendar.day .opsDayLabel strong{font-size:17px}
 .opsCalendar.day .opsDayEmpty,.opsCalendar.week .opsDayEmpty{padding:12px 0;font-size:13px}
 .opsAppointment{padding:12px;margin:8px 0}
 .opsCalendar.month{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border-radius:0 0 14px 14px}
 .opsMonthWeekdays span{padding:10px 0;font-size:10px}
 .opsMonthDay{min-height:52px;padding:7px 2px;align-items:center;justify-content:flex-start;gap:3px}
 .opsMonthDayNumber{font-size:13px}
 .opsMonthCount{font-size:9px;padding:2px 5px}
 .opsMonthSelection{padding:13px}
}
@media(max-width:365px){
 .opsAgendaFilters{grid-template-columns:1fr}
 .opsAgendaPeriod strong{font-size:12px}
 .opsWeekStrip{gap:2px}
 .opsWeekStrip button{min-height:72px}
}


/* Private AF Digital commercial CRM — independent of customer/vehicle CRM. */
.afHeading{align-items:center}
.afEyebrow{font-size:11px;font-weight:800;letter-spacing:1px;color:#0c866e;text-transform:uppercase;display:block;margin-bottom:8px}
.afMetrics{margin-top:12px}
.afToolbar{display:grid;grid-template-columns:minmax(200px,1.7fr) minmax(150px,.8fr) auto;align-items:end;gap:12px;margin:22px 0 17px}
.afToolbar .field{min-width:0}
.afToolbar input,.afToolbar select{min-width:0;width:100%}
.afDisplaySwitch{display:flex;gap:6px}
.afDisplaySwitch .btn{min-height:42px}
.afBoard{display:grid;grid-template-columns:repeat(6,minmax(225px,1fr));gap:12px;overflow-x:auto;overscroll-behavior-x:contain;padding:2px 2px 14px}
.afColumn{min-width:0;background:#eef3f5;border:1px solid #e1eaed;border-radius:15px;padding:10px}
.afColumn header{display:flex;align-items:center;justify-content:space-between;padding:6px 5px 13px;color:#374f60;font-size:13px;gap:8px}
.afColumn header span{border-radius:999px;background:white;padding:3px 9px;font-weight:800}
.afLeadCard{background:#fff;border:1px solid #e2e8eb;border-radius:13px;padding:13px;display:grid;gap:10px;margin-bottom:10px;box-shadow:0 2px 8px rgba(13,34,51,.045)}
.afLeadHead{display:flex;justify-content:space-between;gap:6px;flex-wrap:wrap}
.afLeadName{display:block;background:transparent;border:0;padding:0;text-align:left;font-size:15px;font-weight:800;color:#243d4f;overflow-wrap:anywhere}
.afLeadName:hover{color:#0f8370}
.afStage{display:inline-block;font-size:10px;padding:5px 9px;border-radius:999px;background:#eef0f3;color:#536171;font-weight:750}
.afStage-lead{background:#eaf0fb;color:#426bb0}
.afStage-contacted{background:#e9f1f9;color:#316d9b}
.afStage-follow_up{background:#fff2da;color:#9b6723}
.afStage-proposal{background:#ece8ff;color:#6a58a3}
.afStage-client{background:#dff6e9;color:#177f52}
.afStage-rejected{background:#f9e9ea;color:#a04755}
.afPriority{font-size:10px;padding:5px 8px;color:#b65e24;background:#fff1df;border-radius:999px}
.afDue{font-size:11px;color:#556b78}
.afDue.isLate{color:#a45e14;font-weight:750}
.afLeadPrice{font-size:13px;font-weight:800;color:#1b745e}
.afTags{display:flex;flex-wrap:wrap;gap:5px}
.afTags span{border-radius:7px;background:#edf7f4;padding:4px 7px;font-size:10px;color:#346d62}
.afList{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:12px}
.afList .afLeadCard{margin:0}
.afEditor{margin:15px 0 22px;scroll-margin-top:75px}
.afEditor .opsCard{box-shadow:0 12px 32px rgba(9,36,51,.08);border-color:#badbd2}
.afEditor .opsForm{gap:13px}
.afFormColumns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.afServiceChoices{display:grid;grid-template-columns:repeat(auto-fit,minmax(125px,1fr));gap:8px}
.afServiceOption{display:flex;align-items:center;gap:7px;padding:10px;border:1px solid #e2eaed;border-radius:11px;background:white;font-weight:500;font-size:12px}
.afServiceOption input{width:17px;height:17px;flex:none}
.afHistory{margin-top:20px;padding-top:16px;border-top:1px solid #e5ebed}
.afActivity{padding:9px 0;border-bottom:1px solid #edf1f3}
.afActivity strong{font-size:12px;color:#4e6374}
.afActivity p{font-size:13px;margin:5px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
.afHistory form{margin-top:16px}
@media(max-width:740px){
 .afHeading{align-items:stretch;gap:10px}
 .afHeading .btn{width:100%;min-height:45px}
 .afToolbar{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:9px;margin:14px 0}
 .afToolbar .field:first-child{grid-column:span 2}
 .afToolbar .field input,.afToolbar .field select{font-size:16px;min-height:44px}
 .afDisplaySwitch{grid-column:span 2}
 .afDisplaySwitch .btn{flex:1}
 .afBoard{display:flex;flex-direction:column;overflow-x:visible;gap:10px}
 .afColumn{padding:8px;border-radius:13px}
 .afColumn .empty{padding:14px 8px}
 .afLeadCard{padding:13px}
 .afList{grid-template-columns:1fr;gap:10px}
 .afFormColumns{grid-template-columns:1fr}
 .afServiceChoices{grid-template-columns:repeat(2,minmax(0,1fr))}
 .afEditor{scroll-margin-top:24px}
}

/* Imported appointments and clubs — clear, responsive record cards. */
.opsImportedList{display:grid;grid-template-columns:repeat(auto-fill,minmax(310px,1fr));gap:13px}
.opsRequestCard{padding:18px}
.opsRequestCard .opsListItem{padding-top:0}
.opsRequestNote{font-size:13px;line-height:1.5;white-space:pre-wrap;color:#42596b}
.opsInlineStatus{display:flex;align-items:center;gap:7px;font-size:12px;color:#415b65}
.opsInlineStatus select{width:auto;min-width:115px;max-width:200px;font-size:13px;padding:7px}
@media(max-width:740px){
 .opsImportedList{grid-template-columns:1fr;gap:10px}
 .opsRequestCard{padding:13px}
 .opsInlineStatus{width:100%;justify-content:space-between}
 .opsInlineStatus select{min-width:145px;max-width:70%}
}


/* Detail sheets: edits are always immediately visible rather than below long mobile lists. */
body:has(.atlasDetailBackdrop){overflow:hidden}
.atlasDetailBackdrop{position:fixed;inset:0;z-index:1200;display:flex;align-items:stretch;justify-content:flex-end;background:rgba(12,28,39,.64);overscroll-behavior:contain}
.atlasDetailSheet{width:min(620px,100%);height:100dvh;max-height:100dvh;overflow-y:auto;overscroll-behavior:contain;background:#f5f8fa;box-shadow:-16px 0 48px rgba(8,33,44,.22);padding:16px 18px max(36px,env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;gap:15px;scrollbar-gutter:stable}
.atlasDetailBar{position:sticky;z-index:10;top:-16px;margin:-16px -18px 0;padding:calc(12px + env(safe-area-inset-top,0px)) 18px 12px;background:#fff;border-bottom:1px solid #dbe5e9;display:flex;align-items:center;justify-content:space-between;gap:14px;font-size:15px;font-weight:750;color:#273f4e}
.atlasDetailBar button{border:1px solid #d8e4e8;background:#f5f8f9;color:#324755;min-width:42px;min-height:42px;border-radius:12px;font-size:20px;cursor:pointer;touch-action:manipulation}
.atlasDetailSheet .opsCard{width:100%;max-width:100%;min-width:0}
.atlasDetailSheet input,.atlasDetailSheet textarea,.atlasDetailSheet select{font-size:16px;max-width:100%}
.atlasDetailSheet .opsForm{min-width:0}
.opsVehicleDirectory,.opsServiceDirectory{max-width:100%}
.opsVehicleDirectory .opsCard,.opsServiceDirectory .opsCard{width:100%}
.opsVehicleDirectory .opsListItem,.opsServiceDirectory .opsListItem{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;padding:14px 0}
.opsVehicleDirectory .opsListItem>div,.opsServiceDirectory .opsListItem>div{min-width:0}
.opsVehicleDirectory .opsListItem .opsActions,.opsServiceDirectory .opsListItem .opsActions{justify-content:flex-end}
.opsMessageActions{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap}
.opsMessageActions .opsBtn{padding:8px 11px!important}
@media(max-width:740px){
 .atlasDetailSheet{width:100%;padding:12px 13px max(30px,env(safe-area-inset-bottom,0px));box-shadow:none}
 .atlasDetailBar{top:-12px;margin:-12px -13px 0;padding:calc(9px + env(safe-area-inset-top,0px)) 14px 9px}
 .atlasDetailSheet .opsCard{padding:15px}
 .opsVehicleDirectory .opsListItem,.opsServiceDirectory .opsListItem{grid-template-columns:1fr;align-items:start;gap:9px}
 .opsVehicleDirectory .opsListItem .opsBtn,.opsServiceDirectory .opsListItem .opsBtn{justify-self:start;min-height:42px;min-width:110px}
 .opsMessageActions .opsBtn{min-height:40px;font-size:13px!important}
 .opsCard h4{margin:20px 0 10px;font-size:15px}
}


/* iOS Safari: native date/select inputs have a large intrinsic minimum size.
   Keep these agenda filters in independent full-width rows on touch screens. */
@media(max-width:740px){
  #appShell .opsAgendaFilters{
    display:grid;
    grid-template-columns:minmax(0,1fr);
    gap:12px;
    width:100%;
    min-width:0;
    max-width:100%;
  }
  #appShell .opsAgendaFilters .field,
  #appShell .opsAgendaFilters label.field,
  #appShell .opsAgendaFilters .field>div{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    width:100%;
    min-width:0;
    max-width:100%;
    overflow:visible;
  }
  #appShell .opsAgendaFilters input[type="date"],
  #appShell .opsAgendaFilters select{
    display:block;
    box-sizing:border-box;
    width:100%;
    min-width:0;
    max-width:100%;
    font-size:16px;
    line-height:normal;
    margin:0;
  }
  #appShell .opsAgendaToolbar{min-width:0;max-width:100%;overflow:visible}
  #appShell .opsAgendaPeriod{min-width:0;max-width:100%}
  #appShell .opsAgendaPeriod strong{min-width:0;overflow-wrap:anywhere}
}


/* Super Admin can enter client preview and always has an exit on mobile. */
.atlasMobilePreviewToggle{
 display:flex;align-items:center;justify-content:center;gap:10px;
 width:100%;min-height:48px;margin-top:14px;padding:11px 13px;
 border:1px solid #9dd6c7;border-radius:12px;
 color:#106d5c;background:#e7f7f1;font-size:14px;font-weight:750;
}
.atlasMobilePreviewToggle svg{width:19px;height:19px}
.atlasMobileReturnAdmin{display:none}
@media(max-width:740px){
 #appShell .atlasMobileReturnAdmin{
  display:block;pointer-events:auto;
  position:absolute;right:12px;bottom:calc(100% + 8px);
  max-width:calc(100% - 24px);padding:9px 13px;
  background:#0e776c;color:#fff;border:1px solid #0c6259;
  border-radius:999px;box-shadow:0 4px 18px rgba(11,53,46,.2);
  font-size:12px;font-weight:750;
 }
}


/* Customer-owned vehicles — archive rather than delete; retain all intervention history. */
.atlasClientVehicles{display:flex;flex-direction:column;gap:11px;margin:17px 0 23px}
.atlasSectionBar{display:flex;align-items:center;justify-content:space-between;gap:9px;flex-wrap:wrap}
.atlasSectionBar h4{margin:0}
.atlasSectionBar .opsBtn{min-height:42px}
.atlasClientVehicle{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid #e2eaf0;padding:13px 12px;border-radius:13px;min-width:0}
.atlasVehicleSymbol{background:#e9f6f2;display:grid;place-items:center;width:44px;height:44px;border-radius:12px;flex-shrink:0;font-size:22px}
.atlasClientVehicleName{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
.atlasClientVehicleName strong{overflow-wrap:anywhere;font-size:14px;color:#263d4b}
.atlasClientVehicleName small{color:#778899;font-size:12px}
.atlasClientVehicleActions{display:flex;gap:6px;justify-content:flex-end;flex-wrap:wrap}
.atlasClientVehicleActions .opsBtn{min-height:39px;padding:8px 11px}
.atlasArchivedVehicles{border-top:1px solid #e2e9ed;padding-top:10px}
.atlasArchivedVehicles summary{cursor:pointer;font-weight:700;color:#617789;min-height:40px;display:flex;align-items:center;gap:7px}
.atlasArchivedVehicles summary::before{content:'▸';font-size:16px}
.atlasArchivedVehicles[open] summary::before{content:'▾'}
.atlasArchivedVehicles .atlasClientVehicle{margin-top:9px;background:#f6f8fa}
.atlasVehicleArchivedNotice{padding:15px;background:#fff5e5;border:1px solid #ebd3a9;border-radius:13px;color:#805c22;font-size:13px;display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.atlasVehicleArchivedNotice button{min-height:38px}
@media(max-width:740px){
 .atlasClientVehicle{flex-wrap:wrap}
 .atlasClientVehicleActions{flex-basis:100%;margin-left:56px;justify-content:flex-start}
 .atlasClientVehicleActions .opsBtn{min-height:42px}
 .atlasSectionBar .opsBtn{width:100%}
}
@media(max-width:330px){
 .atlasClientVehicleActions{margin-left:0}
}


/* Confidential consent archive within client profile. Private links expire after 2 minutes. */
.atlasConsentPanel{padding:17px;margin:10px 0 25px;border-radius:14px;background:#fff;border:1px solid #dfe9e8}
.atlasConsentPanel h4{margin:0}
.atlasConsentPanel>.muted{margin:9px 0 16px}
.atlasConsentCount{font-size:11px;color:#527568;font-weight:700;background:#e6f5ef;padding:6px 9px;border-radius:20px}
.atlasConsentDocument{display:flex;align-items:flex-start;gap:11px;padding:13px 0;border-top:1px solid #e7eef1;min-width:0}
.atlasConsentIcon{background:#eef2f6;color:#4b6575;border-radius:10px;width:39px;height:39px;font-size:10px;font-weight:850;display:grid;place-items:center;flex-shrink:0}
.atlasConsentDescription{display:flex;flex-direction:column;gap:4px;flex:1;min-width:0}
.atlasConsentDescription strong{font-size:13px;overflow-wrap:anywhere}
.atlasConsentDescription small{font-size:11px;color:#768a96;overflow-wrap:anywhere}
.atlasConsentDescription p{font-size:12px;margin:3px 0;white-space:pre-wrap;overflow-wrap:anywhere}
.atlasConsentActions{display:flex;gap:6px;flex-wrap:wrap}
.atlasConsentActions .opsBtn{min-height:38px;padding:8px 9px}
.atlasConsentUpload{margin-top:15px;border-top:1px solid #e4edef;padding-top:12px}
.atlasConsentUpload summary{cursor:pointer;color:#116f63;font-size:13px;font-weight:750;min-height:40px;display:flex;align-items:center}
.atlasConsentUpload .opsForm{padding-top:12px}
.atlasConsentUpload input[type=file]{max-width:100%;font-size:13px}
.atlasConsentUpload input[type=file]::file-selector-button{border:1px solid #b6d6cc;border-radius:8px;background:#e8f7f1;color:#176a5c;padding:9px;margin-right:10px}
@media(max-width:740px){
 .atlasConsentPanel{padding:12px}
 .atlasConsentDocument{flex-wrap:wrap}
 .atlasConsentActions{flex-basis:100%;margin-left:50px}
 .atlasConsentUpload .opsForm .btn{min-height:44px}
}


/* Tenant user management: clear permissions and seat capacity on small screens. */
.atlasSeatColumns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:18px}
.atlasSeatKPIs{display:grid;grid-template-columns:1fr 1fr;gap:13px;padding:6px 0 13px}
.atlasSeatKPIs>div{display:flex;flex-direction:column;gap:4px;min-width:0}
.atlasSeatKPIs strong{font-size:24px;color:#1b3e4c;font-variant-numeric:tabular-nums}
.atlasSeatKPIs span{font-size:12px;color:#6a7d88}
.atlasSeatProgress{height:9px;background:#e6edef;border-radius:999px;overflow:hidden;margin:4px 0 12px}
.atlasSeatProgress>div{height:100%;border-radius:999px;background:#2f9b83}
.atlasSeatWarning{padding:14px;border:1px solid #ecd9af;background:#fff7e8;border-radius:12px;color:#805b1e;line-height:1.5}
.atlasSeatMember{padding:15px 0;border-bottom:1px solid #e5ecf0;min-width:0}
.atlasSeatMember:last-child{border-bottom:0}
.atlasSeatIdentity{display:flex;align-items:center;gap:11px;min-width:0}
.atlasSeatAvatar{display:grid;place-items:center;flex-shrink:0;background:#e6f7f0;color:#196f5e;border-radius:12px;width:44px;height:44px;font-size:16px;font-weight:800}
.atlasSeatIdentityBody{display:flex;flex-direction:column;gap:3px;flex:1;min-width:0}
.atlasSeatIdentityBody strong{font-size:14px;overflow-wrap:anywhere}
.atlasSeatIdentityBody small{color:#748995;overflow-wrap:anywhere;font-size:11px}
.atlasSeatMemberTools{display:flex;align-items:center;justify-content:flex-start;gap:12px;flex-wrap:wrap;margin:10px 0 0 55px}
.atlasSeatMemberTools label.field{display:flex;min-width:150px;max-width:240px;gap:4px;margin:0}
.atlasSeatMemberTools select{min-height:42px;font-size:14px}
.atlasSeatMemberTools button{min-height:42px}
.atlasPlanSeatsForm{display:grid;grid-template-columns:minmax(100px,1fr) minmax(110px,170px) auto;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid #e5edef}
.atlasPlanSeatsForm:last-child{border-bottom:0}
.atlasPlanSeatsForm>div{display:flex;flex-direction:column;gap:4px}
.atlasPlanSeatsForm>div small{font-size:11px;color:#748995}
.atlasPlanSeatsForm label.field{margin:0}
.atlasPlanSeatsForm input{min-width:0;width:100%;font-size:16px}
@media(max-width:740px){
 .atlasSeatColumns{grid-template-columns:1fr;gap:10px}
 .atlasSeatIdentity{align-items:flex-start}
 .atlasSeatIdentity .tag{margin-top:4px}
 .atlasSeatMemberTools{margin:12px 0 0;display:grid;grid-template-columns:1fr;gap:8px}
 .atlasSeatMemberTools label.field{max-width:100%}
 .atlasPlanSeatsForm{grid-template-columns:1fr;gap:10px}
 .atlasPlanSeatsForm>button{width:100%;min-height:44px}
 .atlasSeatKPIs strong{font-size:22px}
}


/* Invitation-based account activation, keyboard accessible and iPhone friendly. */
.atlasInviteOverlay{position:fixed;inset:0;z-index:5000;overflow-y:auto;background:#f1f7f6;display:flex;justify-content:center;align-items:center;padding:calc(18px + env(safe-area-inset-top,0px)) 16px calc(18px + env(safe-area-inset-bottom,0px))}
.atlasInviteCard{width:min(450px,100%);background:white;border:1px solid #dae8e5;border-radius:22px;padding:32px;box-shadow:0 15px 65px rgba(15,48,54,.12)}
.atlasInviteBrand{font-weight:900;color:#137d6b;letter-spacing:-1px;font-size:22px;margin-bottom:18px}
.atlasInviteCard h1{font-size:26px;margin:0 0 12px;color:#203a42}
.atlasInviteCard p{line-height:1.5;color:#546a73;font-size:13px;margin-bottom:16px}
.atlasInviteCard form{display:flex;flex-direction:column;gap:15px}
.atlasInviteCard label{display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight:700}
.atlasInviteCard input{min-height:46px;border:1px solid #cfdedc;border-radius:10px;padding:11px;font-size:16px;width:100%}
.atlasInviteCard form .btn{min-height:48px}
.atlasInviteCard #atlasInviteMessage{font-weight:650;color:#9b4d23;margin:2px 0}
.atlasInviteBack{border:0;background:transparent;font-size:13px;padding:12px 0;color:#47667b;text-decoration:underline;cursor:pointer}
@media(max-width:740px){.atlasInviteCard{padding:22px 18px;border-radius:16px}.atlasInviteOverlay{align-items:flex-start;padding-top:max(42px,env(safe-area-inset-top,0px))}}


/* Cross-business task checklist — touch-friendly rows and mobile editor. */
.atlasTaskSummary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 18px}
.atlasTaskSummary>div{padding:15px 13px;background:#fff;border:1px solid #e4ebef;border-radius:13px;display:flex;flex-direction:column;gap:5px;min-width:0}
.atlasTaskSummary strong{font-size:25px;color:#263d49;font-variant-numeric:tabular-nums}
.atlasTaskSummary span{font-size:12px;color:#6b8490}
.atlasTaskFilterBar{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 14px}
.atlasTaskFilterBar button{border:1px solid #dce7e8;border-radius:999px;background:#fff;color:#526d78;min-height:42px;padding:8px 16px;font-size:13px;font-weight:700;cursor:pointer}
.atlasTaskFilterBar button.isActive{border-color:#147d6d;background:#e4f5ef;color:#136b5d}
.atlasTasksList{background:#fff;border:1px solid #e4ecef;border-radius:14px;overflow:hidden}
.atlasTaskRow{display:flex;gap:12px;align-items:flex-start;padding:16px;border-bottom:1px solid #e6edef;min-width:0}
.atlasTaskRow:last-child{border-bottom:0}
.atlasTaskCheck{display:grid;place-items:center;flex:none;padding:3px 0;cursor:pointer}
.atlasTaskCheck input{width:23px;height:23px;accent-color:#148b70;margin:0;cursor:pointer}
.atlasTaskCheck input:disabled{cursor:not-allowed;opacity:.45}
.atlasTaskContent{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px}
.atlasTaskContent strong{font-size:14px;overflow-wrap:anywhere;color:#263b44;line-height:1.4}
.atlasTaskContent p{margin:0;font-size:12px;color:#607783;white-space:pre-wrap;overflow-wrap:anywhere}
.atlasTaskContent small{font-size:12px;color:#718792;line-height:1.5}
.atlasTaskRow.isDone .atlasTaskContent strong{text-decoration:line-through;color:#8ba09f}
.atlasTaskTools{display:flex;gap:9px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.atlasTaskPriority{font-size:11px;font-weight:750;white-space:nowrap;padding:5px 9px;border-radius:999px}
.atlasTaskHigh{background:#fff0ed;color:#a14c35}
.atlasTaskNormal{background:#edf5fc;color:#41708e}
.atlasTaskLow{background:#e9f5ef;color:#477f66}
.atlasTaskOverdue{background:#fff0ed;color:#a14c35;font-weight:700;padding:3px 6px;border-radius:5px}
.atlasTaskFormActions{display:flex;gap:9px;flex-wrap:wrap;align-items:center}
.atlasTaskFormActions .btn{min-height:44px}
@media(max-width:740px){
 .atlasTaskSummary{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .atlasTaskSummary>div{padding:12px}
 .atlasTaskSummary strong{font-size:23px}
 .atlasTaskFilterBar{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
 .atlasTaskFilterBar button{font-size:11px;padding:8px 2px;min-height:43px}
 .atlasTaskRow{padding:14px 11px;gap:10px;flex-wrap:wrap}
 .atlasTaskContent{flex-basis:calc(100% - 41px)}
 .atlasTaskTools{margin-left:32px;justify-content:space-between;flex-basis:100%}
 .atlasTaskTools .opsBtn{min-height:42px}
 .atlasTaskFormActions{display:grid;grid-template-columns:1fr}
 .atlasTaskFormActions .btn{width:100%;min-height:46px}
}

/* Google Calendar connection: same button system across all Atlas tenants. */
.opsGoogleStatus{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:13px;color:#587082;margin-bottom:12px}
.opsGoogleActions{display:flex;flex-wrap:wrap;gap:9px;margin:15px 0 10px}
.opsGoogleActions .btn{min-height:44px;white-space:normal}
.opsGoogleSelection,.opsGoogleBusy{border-top:1px solid #e3ebee;padding-top:13px;margin-top:16px}
.opsGoogleOptions{display:grid;gap:9px;margin:12px 0}
.opsGoogleOptions label{display:flex;gap:10px;align-items:flex-start;font-size:13px;padding:9px 10px;background:#f7faf9;border-radius:10px;cursor:pointer;overflow-wrap:anywhere}
.opsGoogleOptions input[type=checkbox]{width:18px;min-width:18px;height:18px;margin:1px 0 0;accent-color:#117b70}
.opsGoogleBusySlot{padding:10px 0;border-bottom:1px solid #eaf0f2;font-size:12px;color:#4e6373}
.optimizaGoogleCalendarOption{display:grid;grid-template-columns:minmax(180px,1.5fr) minmax(180px,1fr) 100px;gap:10px;align-items:center;padding:9px 10px;background:#f7faf9;border-radius:10px}
.optimizaGoogleCalendarOption>label{padding:0;background:transparent}
.optimizaGoogleModeLabel,.optimizaGoogleColorLabel{display:grid!important;gap:5px!important;font-size:12px!important;color:#587082}
.optimizaGoogleModeLabel select{min-height:40px;max-width:100%;border:1px solid #d9e4e7;border-radius:8px;padding:7px;background:#fff;color:#173a46}
.optimizaGoogleColorLabel input[type=color]{width:100%;height:40px;padding:3px;border:1px solid #d9e4e7;border-radius:8px;background:#fff}
@media(max-width:740px){.optimizaGoogleCalendarOption{grid-template-columns:1fr 1fr}.optimizaGoogleCalendarOption>label:first-child{grid-column:1/-1}.optimizaGoogleModeLabel select{width:100%}}

.opsGoogleDisconnect{margin-top:18px;min-height:44px}
@media(max-width:740px){
 .opsGoogleActions{display:grid;grid-template-columns:1fr;gap:8px}
 .opsGoogleActions .btn,.opsGoogleDisconnect{width:100%;min-height:44px}
 .opsGoogleOptions label{min-height:44px}
}

/* Mobile business settings submenu inside Mais. */
@media(max-width:740px){
 .atlasMobileSettingsBlock{margin-top:13px;border-top:1px solid #e6eeee;padding-top:12px}
 .atlasMobileSettingsBlock>button{display:flex;align-items:center;gap:10px;width:100%;min-height:48px;border:1px solid #c4e4dc;background:#eaf7f3;color:#176e62;border-radius:12px;padding:10px 13px;text-align:left}
 .atlasMobileSettingsBlock>button svg{width:20px;height:20px}
 .atlasMobileSettingsBlock>button strong{font-size:13px;flex:1}
 .atlasMobileSettingsChevron{font-size:19px;transition:transform .15s}
 .atlasMobileSettingsBlock>button[aria-expanded="true"] .atlasMobileSettingsChevron{transform:rotate(180deg)}
 .atlasMobileSettingsList{display:none;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding-top:10px}
 .atlasMobileSettingsList.isOpen{display:grid}
 .atlasMobileSettingsList>button{display:flex;align-items:center;justify-content:flex-start;flex-direction:row;gap:8px;text-align:left;min-height:49px;background:#f7fafb;border:1px solid #dfe9eb;border-radius:10px;padding:9px;color:#3b5662;font-weight:650;font-size:12px;min-width:0}
 .atlasMobileSettingsList>button svg{width:18px;height:18px;flex:0 0 18px}
 .atlasMobileSettingsList>button span{overflow-wrap:anywhere}
 .atlasMobileSettingsList>button.isActive{background:#dff4ec;border-color:#9dd5c7;color:#156f5f}
}

/* Clube: subscription balances in the customer file and company overview. */
.atlasClubClientBlock{margin:18px 0}
.atlasClubClientBlock .opsCard{border-color:#b8ded4;background:linear-gradient(160deg,#fff 70%,#f2faf7 100%)}
.atlasClubSummary{display:flex;flex-direction:column;align-items:flex-start;gap:9px;margin:0 0 15px}
.atlasClubSummary>strong{font-size:17px;color:#263e48}
.atlasClubSummary .muted{margin:0}
.atlasClubBalance{display:flex;align-items:baseline;gap:10px;padding:12px 15px;background:#e9f8f2;border:1px solid #cce9dc;border-radius:12px;max-width:100%}
.atlasClubBalance b{font-size:30px;letter-spacing:-.8px;font-variant-numeric:tabular-nums;color:#156d5d}
.atlasClubBalance span{font-size:12px;font-weight:700;color:#54756e}
.atlasClubHistory{border-top:1px solid #e4eded;padding:13px 0;margin-top:15px}
.atlasClubHistory summary{cursor:pointer;font-size:13px;color:#476274;font-weight:650}
.atlasClubHistory p{font-size:12px;color:#647986;border-bottom:1px solid #edf2f4;padding-bottom:7px}
.atlasClubConsume{display:flex;gap:10px;align-items:flex-start;padding:13px;background:#edf8f3;border:1px solid #cde7d8;border-radius:10px;margin-bottom:12px;cursor:pointer}
.atlasClubConsume input{flex:none;width:19px;height:19px;accent-color:#177b64;margin-top:1px}
.atlasClubConsume span{display:flex;flex-direction:column;gap:4px;min-width:0}
.atlasClubConsume small{font-size:12px;color:#577267;overflow-wrap:anywhere}
.atlasClubListRow{flex-wrap:wrap;gap:10px}
.atlasClubListActions{display:flex;align-items:center;gap:9px;margin-left:auto;flex-wrap:wrap}
.atlasClubListActions .btn{min-height:39px}
@media(max-width:740px){
 .atlasClubClientBlock .opsCard{padding:15px}
 .atlasClubListActions{width:100%;justify-content:space-between}
 .atlasClubBalance{width:100%;justify-content:space-between}
 .atlasClubClientBlock .btn{white-space:normal;min-height:44px}
}

/* ATLAS mobile: a single top hamburger opens the complete menu; bottom dock holds quick actions only. */
.atlasMobileHamburger{display:none}
@media(max-width:740px){
 #appShell .topbar{gap:9px;padding-left:12px;padding-right:12px}
 #appShell .atlasMobileHamburger{width:44px;height:44px;flex:0 0 44px;display:flex;align-items:center;justify-content:center;background:#f3f8f8;border:1px solid #d9e8e8;color:#174e55;border-radius:11px}
 #appShell .atlasMobileHamburger span{font-size:23px;line-height:1}
 #appShell .topbar .crumb{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 #appShell .topbar .top-actions{flex:0 1 auto;min-width:0}
 .atlasMobileMenuOpen{overflow:hidden}
 .atlasMobileDock .atlasMobileBackdrop{display:none;position:fixed;inset:0;z-index:10;background:rgba(11,28,39,.58);pointer-events:auto}
 .atlasMobileDock .atlasMobileBackdrop.isOpen{display:block}
 .atlasMobileDock .atlasMobileDrawer{position:fixed;top:0;bottom:0;left:0;right:auto;width:min(88vw,370px);max-width:100%;max-height:none;height:100dvh;z-index:11;border:0;border-right:1px solid #d7e3e8;border-radius:0 18px 18px 0;box-shadow:12px 0 46px rgba(5,25,35,.22);padding:18px 14px calc(24px + env(safe-area-inset-bottom,0px));overscroll-behavior:contain}
 .atlasMobileDock .atlasMobileDrawerTitle{position:sticky;top:-18px;z-index:1;background:#fff;padding:4px 0 13px;border-bottom:1px solid #ecf0f2;min-height:55px}
 .atlasMobileDock .atlasMobileDrawerTitle strong{font-size:18px;color:#1c3945}
 .atlasMobileMenuGroup{padding:14px 0 7px}
 .atlasMobileMenuHeading{font-size:10px;font-weight:800;letter-spacing:1.25px;color:#8aa0ac;margin:3px 0 9px 7px}
 .atlasMobileMenuList{display:flex;flex-direction:column;gap:3px}
 .atlasMobileMenuList>button{display:flex;align-items:center;gap:12px;text-align:left;width:100%;min-height:46px;border:0;border-radius:11px;padding:10px 12px;background:transparent;color:#365565;font-size:13px;font-weight:650}
 .atlasMobileMenuList>button svg{width:19px;height:19px;flex:0 0 19px}
 .atlasMobileMenuList>button:active,.atlasMobileMenuList>button:hover{background:#eef7f5}
 .atlasMobileMenuList>button.isActive{background:#e0f4eb;color:#126c5b}
 .atlasMobileSettingsBlock{margin-top:8px;margin-bottom:8px}
 .atlasMobileSettingsList{grid-template-columns:1fr}
 .atlasMobileSettingsList>button{font-size:13px}
 .atlasMobileSettingsList>button svg{flex:0 0 19px}
}

/* Follow-up: immediate WhatsApp / SMS composer for any customer with contact details. */
.opsQuickMessageGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.opsQuickMessageActions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.opsQuickMessageActions .btn{min-height:44px;min-width:138px}
@media(max-width:740px){
 .opsQuickMessageGrid{grid-template-columns:1fr}
 .opsQuickMessageActions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .opsQuickMessageActions .btn{min-width:0;width:100%;min-height:47px;white-space:normal}
 .opsQuickMessageActions .btn:first-child{grid-column:1/-1}
}

/* Dashboard: quick communication actions without sacrificing readable client names. */
.opsWidgets .opsDashboardRow{align-items:flex-start;flex-wrap:wrap;gap:8px}
.opsWidgets .opsDashboardRow>div:first-child{flex:1 1 155px;min-width:0}
.opsWidgets .opsDashboardRow>.opsActions{flex:0 1 auto;justify-content:flex-end;gap:5px}
.opsWidgets .opsDashboardRow .opsMessageActions{display:flex;gap:5px;flex-wrap:wrap}
.opsWidgets .opsDashboardRow .opsMessageActions .opsBtn{min-height:36px;padding:7px 9px!important;font-size:11px!important;white-space:nowrap}
@media(max-width:740px){
 .opsWidgets .opsDashboardRow>.opsActions{flex:1 1 100%;justify-content:flex-start}
 .opsWidgets .opsDashboardRow .opsMessageActions .opsBtn{min-height:42px;padding:8px 10px!important}
 .opsWidgets .opsDashboardRow>div:first-child{flex:1 1 100%}
}

/* Club membership at a glance: same cards in CRM, Club overview and customer detail. */
.atlasClientClubFilter{display:flex;flex-direction:column;gap:6px;margin:12px 0 7px}
.atlasClientClubFilter select{width:100%;min-height:42px}
.atlasClientList{max-height:min(72vh,790px);overflow-y:auto;overscroll-behavior:contain}
.atlasClientListRow{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px;padding:16px 0}
.atlasClientListIdentity,.atlasClubListMain{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:5px}
.atlasClientListIdentity>strong,.atlasClubListMain>strong{font-size:14px;line-height:1.32;color:#1b3547}
.atlasClientListIdentity>.muted{margin-top:0!important;overflow-wrap:anywhere}
.atlasClientListActions{justify-content:flex-end;align-self:center;max-width:100%}
.atlasClientListActions .opsMessageActions{flex-wrap:wrap;justify-content:flex-end}
.atlasClientListActions .opsBtn{min-height:38px}
.atlasClubMini{margin-top:7px;max-width:100%;width:100%;min-width:0}
.atlasClubMiniTop{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.atlasClubMiniFlag{display:inline-flex;align-items:center;gap:5px;padding:5px 9px;border-radius:999px;font-size:11px;font-weight:750;letter-spacing:.1px;line-height:1.35;white-space:nowrap}
.atlasClubMini.isMember .atlasClubMiniFlag{background:#e5f6ee;color:#116b50;border:1px solid #bee9d6}
.atlasClubMini.isNone .atlasClubMiniFlag{background:#f3f5f7;color:#657583;border:1px solid #e0e8ec}
.atlasClubMini.isUnknown .atlasClubMiniFlag{background:#fff6e6;color:#915c15;border:1px solid #f2dfaf}
.atlasClubMiniPlan{font-size:12px;font-weight:800;color:#254559;overflow-wrap:anywhere}
.atlasClubMiniData{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;margin-top:9px;font-size:11px;line-height:1.55;color:#5b7080}
.atlasClubMiniRemaining{display:inline-flex;align-items:baseline;gap:4px;color:#116b52;background:#f0faf6;padding:5px 8px;border-radius:8px;white-space:normal}
.atlasClubMiniRemaining strong{font-size:15px;font-variant-numeric:tabular-nums;font-weight:800}
.atlasClubMiniRemaining.isEmpty{background:#fff5ea;color:#9b5c18}
.atlasClubMiniDate{display:inline-flex;gap:4px;align-items:center;overflow-wrap:anywhere}
.atlasClubClientBlock .atlasClubMini{margin:0}
.atlasClubClientBlock .atlasClubMiniData{gap:12px;font-size:12px}
.atlasClubClientBlock .atlasClubMiniRemaining strong{font-size:20px}
.atlasClubBillingForm{margin:14px 0 20px;padding:14px 0;border-top:1px solid #e5eeee;border-bottom:1px solid #e5eeee}
.atlasClubBillingForm .btn{justify-self:start}
.atlasClubListMain{flex:1 1 280px}
.atlasClubListRow{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;padding:16px 0}
@media(max-width:1100px){
 .atlasClientListRow{grid-template-columns:minmax(0,1fr)}
 .atlasClientListActions{justify-content:flex-start;align-self:stretch}
 .atlasClientListActions .opsMessageActions{justify-content:flex-start}
}
@media(max-width:740px){
 .atlasClientList{max-height:none;overflow:visible}
 .atlasClientListRow,.atlasClubListRow{padding:15px 0;gap:12px}
 .atlasClientListRow{display:flex;flex-direction:column;align-items:stretch}
 .atlasClientListIdentity,.atlasClubListMain{gap:6px;width:100%}
 .atlasClientListIdentity>strong,.atlasClubListMain>strong{font-size:15px}
 .atlasClubMini{margin-top:8px}
 .atlasClubMiniTop{gap:8px}
 .atlasClubMiniData{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 10px;margin-top:10px}
 .atlasClubMiniRemaining{grid-column:1/-1;min-height:39px;align-items:center;width:fit-content}
 .atlasClubMiniDate{font-size:11px;line-height:1.45;align-items:start}
 .atlasClientListActions{width:100%;gap:8px;margin-top:2px}
 .atlasClientListActions>.opsBtn{min-width:72px;min-height:43px}
 .atlasClientListActions .opsMessageActions{gap:7px}
 .atlasClientListActions .opsMessageActions .opsBtn{min-height:43px}
 .atlasClubClientBlock .opsCard{padding:16px}
 .atlasClubClientBlock .opsForm{gap:11px}
 .atlasClubListActions{width:100%;justify-content:flex-start}
 .atlasClubListActions>.btn{min-height:44px}
}
@media(max-width:360px){
 .atlasClubMiniData{grid-template-columns:1fr}
 .atlasClubMiniRemaining{grid-column:auto}
}

/* Calendar integration lives in Agenda, without a separate Apple section. */
.atlasAgendaGoogleToolbar{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;margin-left:auto}
.atlasAgendaGoogleToolbar .btn{white-space:normal;min-height:44px;min-width:175px}
.atlasAgendaGooglePanel{margin:2px 0 19px;width:100%;min-width:0}
.atlasAgendaGooglePanel[hidden]{display:none!important}
.atlasAgendaGooglePanel>.card{border-color:#cfe8e2}
@media(max-width:740px){
 .atlasAgendaGoogleToolbar{width:100%;margin:12px 0 0;justify-content:stretch}
 .atlasAgendaGoogleToolbar .btn{width:100%;min-height:46px;font-size:13px}
 .atlasAgendaGooglePanel{margin:0 0 15px}
 .atlasAgendaGooglePanel .opsGoogleActions{flex-direction:column}
 .atlasAgendaGooglePanel .opsGoogleActions .btn{width:100%;min-height:44px}
}

/* Dashboard editor: touch/desktop drag-and-drop, visible ordering and accessible fallbacks. */
.opsCustomizeGroup{margin:20px 0}
.opsCustomizeGroup .opsWidgetChecklist{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
.opsCustomizeGroup .opsDragHelp{font-size:12px;line-height:1.5;margin:0 0 12px}
.opsCustomizeGroup .opsChoice{
 display:flex;align-items:center;gap:9px;position:relative;min-width:0;
 padding:9px 11px;background:#fff;border:1px solid #dce8ed;border-radius:11px;
 transition:background-color .13s,border-color .13s,box-shadow .13s
}
.opsCustomizeGroup .opsChoice.isSelected{border-color:#cfe3db;background:#f9fdfb}
.opsCustomizeGroup .opsChoice.isInactive{opacity:.69}
.opsCustomizeGroup .opsChoice.isDragging{background:#ecf8f2;border:1px dashed #1b9b78}
.opsCustomizeGroup .opsChoice.isDragTarget::before,
.opsCustomizeGroup .opsChoice.isDragTarget.isDragAfter::after{
 content:'';position:absolute;left:8px;right:8px;top:-5px;height:4px;
 border-radius:6px;background:#188f76;box-shadow:0 0 0 2px #dcf4ec;z-index:2
}
.opsCustomizeGroup .opsChoice.isDragTarget.isDragAfter::before{display:none}
.opsCustomizeGroup .opsChoice.isDragTarget.isDragAfter::after{top:auto;bottom:-5px}
.opsCustomizeGroup .opsChoiceLabel{
 display:flex;align-items:center;gap:10px;flex:1;min-width:0;cursor:pointer;
 font-size:13px;font-weight:600;line-height:1.4
}
.opsCustomizeGroup .opsChoiceLabel span{min-width:0;overflow-wrap:anywhere}
.opsCustomizeGroup .opsChoiceLabel input{margin:0;accent-color:#147c65;flex:0 0 18px}
.opsCustomizeGroup .opsDragHandle{
 flex:0 0 39px;display:flex;align-items:center;justify-content:center;
 height:42px;padding:0;border:1px solid #deebe9;border-radius:9px;
 background:#eef8f5;color:#397a6f;cursor:grab;font-size:23px;line-height:1;
 touch-action:none;user-select:none;-webkit-user-select:none
}
.opsCustomizeGroup .opsDragHandle:active{cursor:grabbing}
.opsCustomizeGroup .opsDragHandle:focus-visible,
.opsCustomizeGroup .opsOrderActions button:focus-visible{
 outline:3px solid #14967d;outline-offset:2px
}
.opsCustomizeGroup .opsDragHandle:disabled{opacity:.3;cursor:default;touch-action:auto}
.opsCustomizeGroup .opsOrderActions{display:flex;flex:0 0 auto;gap:5px;margin-left:auto}
.opsCustomizeGroup .opsOrderActions button{
 width:40px;height:40px;border-radius:9px;border:1px solid #d8e5e6;
 background:#fff;color:#365763;font-size:18px;font-weight:750
}
.opsCustomizeGroup .opsOrderActions button:disabled{opacity:.25;cursor:not-allowed}
@media(max-width:740px){
 .opsCustomizeGroup .opsChoice{padding:8px;gap:7px}
 .opsCustomizeGroup .opsDragHandle{flex-basis:42px;height:44px}
 .opsCustomizeGroup .opsChoiceLabel{font-size:12px;gap:8px}
 .opsCustomizeGroup .opsOrderActions{gap:4px}
 .opsCustomizeGroup .opsOrderActions button{width:40px;height:44px}
}
@media(max-width:365px){
 .opsCustomizeGroup .opsChoiceLabel{font-size:11px}
 .opsCustomizeGroup .opsOrderActions button{width:36px}
}

/* Automotive customer creation: optional first vehicle, no second form or page. */
.atlasNewClientVehicle{margin:5px 0 16px;border:1px solid #cfe8e1;border-radius:13px;background:#f8fcfa;overflow:hidden}
.atlasNewClientVehicleToggle{display:flex;align-items:center;gap:12px;min-height:62px;padding:13px 15px;cursor:pointer}
.atlasNewClientVehicleToggle>input{flex:0 0 20px;width:20px;height:20px;margin:0;accent-color:#168c73}
.atlasNewClientVehicleToggle>span{display:flex;flex-direction:column;gap:3px;min-width:0}
.atlasNewClientVehicleToggle strong{font-size:14px;color:#19433d;line-height:1.35}
.atlasNewClientVehicleToggle small{font-size:12px;font-weight:450;color:#667f7a;line-height:1.4}
.atlasNewClientVehicleFields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;
 padding:18px 15px 15px;border:0;border-top:1px solid #dcece7;margin:0;min-width:0;background:white}
.atlasNewClientVehicleFields[hidden]{display:none!important}
.atlasNewClientVehicleFields legend{font-size:13px;font-weight:750;color:#27564b;padding:0 7px}
.atlasNewClientVehicleFields .field{min-width:0;margin:0}
.atlasNewClientVehicleFields .field input,.atlasNewClientVehicleFields .field select,
.atlasNewClientVehicleFields .field textarea{width:100%;min-width:0}
.atlasNewClientVehicleFields>.field:first-of-type,
.atlasNewClientVehicleFields>.field:last-of-type,
.atlasNewClientVehicleFields>.muted{grid-column:1/-1}
.atlasNewClientVehicleFields>.muted{margin:0;font-size:12px}
@media(max-width:740px){
 .atlasNewClientVehicleToggle{padding:13px 12px;min-height:60px}
 .atlasNewClientVehicleFields{grid-template-columns:1fr;gap:11px;padding:14px 12px}
 .atlasNewClientVehicleFields>.field,.atlasNewClientVehicleFields>.muted{grid-column:1}
 .atlasNewClientVehicleFields input,.atlasNewClientVehicleFields select,
 .atlasNewClientVehicleFields textarea{min-height:44px;font-size:16px}
 .atlasNewClientVehicleToggle small{font-size:11px}
 #opsContactSubmit{width:100%;min-height:48px}
}

/* ATLAS reporting: native SVG charts, high-contrast legends and mobile-safe controls. */
.atlasAnalyticsHeading{margin-bottom:16px}
.atlasAnalyticsFilters{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px;margin:12px 0 22px}
.atlasAnalyticsFilters>.field{display:flex;flex-direction:column;gap:7px;min-width:180px;flex:0 1 240px;margin:0}
.atlasAnalyticsFilters select{height:44px;width:100%;min-width:0;font-size:14px}
.atlasAnalyticsFilters>.btn{min-height:44px;margin-bottom:0}
.atlasAnalyticsLoading,.atlasAnalyticsError{border:1px solid #dde7ec;border-radius:14px;padding:22px;background:#fff;margin:16px 0}
.atlasAnalyticsError{border-color:#edc7c7;color:#a1383a;background:#fff7f7}
.atlasAnalyticsKpiGrid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:11px;margin-bottom:20px}
.atlasAnalyticsKpi{background:#fff;border:1px solid #dde9ec;border-radius:15px;padding:16px;display:flex;flex-direction:column;gap:9px;min-width:0;box-shadow:0 2px 7px rgba(22,47,59,.025)}
.atlasAnalyticsKpiLabel{font-size:12px;color:#5e7381;font-weight:750}
.atlasAnalyticsKpiValue{font-size:clamp(19px,2vw,29px);letter-spacing:-.6px;font-weight:840;color:#1b3743;line-height:1.25;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.atlasAnalyticsKpi small{font-size:11px;line-height:1.5;color:#738795}
.atlasAnalyticsCharts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:16px 0 22px}
.atlasAnalyticsChartCard{background:#fff;border:1px solid #e1e9ee;border-radius:16px;padding:18px;min-width:0;box-shadow:0 3px 11px rgba(17,45,58,.035)}
.atlasAnalyticsChartHead{display:flex;justify-content:space-between;align-items:flex-start;gap:8px;flex-wrap:wrap;margin-bottom:10px}
.atlasAnalyticsChartHead h3{font-size:16px;font-weight:800;line-height:1.35;margin:0;color:#203946}
.atlasAnalyticsLegend{display:flex;flex-wrap:wrap;gap:9px;font-size:11px;color:#4b6273}
.atlasAnalyticsLegendItem{display:flex;align-items:center;gap:5px;white-space:nowrap}
.atlasAnalyticsLegendItem>span{width:9px;height:9px;border-radius:50%;flex:none}
.atlasAnalyticsSvgScroll{width:100%;overflow-x:auto;overscroll-behavior-x:contain}
.atlasAnalyticsSvg{width:100%;height:auto;display:block;min-width:0}
.atlasAnalyticsZero{font-size:12px;margin:2px 0 0}
.atlasAnalyticsDetails{margin:12px 0 16px;border:1px solid #e3eaee;border-radius:12px;padding:13px 15px;background:#fff}
.atlasAnalyticsDetails summary{cursor:pointer;font-size:13px;font-weight:750;color:#226b62}
.atlasAnalyticsTableScroll{margin-top:13px;overflow-x:auto;overscroll-behavior:contain}
.atlasAnalyticsDetails table{border-collapse:collapse;width:100%;min-width:620px;font-size:12px}
.atlasAnalyticsDetails th,.atlasAnalyticsDetails td{border-bottom:1px solid #e7eff1;padding:10px;text-align:right;white-space:nowrap}
.atlasAnalyticsDetails tr>*:first-child{text-align:left}
.atlasAnalyticsDetails thead th{font-weight:800;background:#f6faf9;color:#536873}
.atlasAnalyticsNote{font-size:12px;line-height:1.6;color:#667c88;margin:0 0 25px}
@media(max-width:1180px){
 .atlasAnalyticsKpiGrid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:850px){
 .atlasAnalyticsCharts{grid-template-columns:1fr}
}
@media(max-width:740px){
 .atlasAnalyticsFilters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:8px 0 16px}
 .atlasAnalyticsFilters>.field{flex:auto;min-width:0;width:100%}
 .atlasAnalyticsFilters select{font-size:16px;min-height:46px}
 .atlasAnalyticsFilters>.btn{grid-column:1/-1;width:100%;min-height:45px}
 .atlasAnalyticsKpiGrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .atlasAnalyticsKpi{padding:12px;min-height:122px}
 .atlasAnalyticsKpiValue{font-size:clamp(19px,6vw,27px)}
 .atlasAnalyticsCharts{gap:11px;margin:12px 0}
 .atlasAnalyticsChartCard{padding:12px 10px;border-radius:13px}
 .atlasAnalyticsChartHead h3{font-size:14px}
 .atlasAnalyticsSvg{min-width:300px}
 .atlasAnalyticsNote{font-size:11px}
}
@media(max-width:355px){
 .atlasAnalyticsFilters{grid-template-columns:1fr}
 .atlasAnalyticsKpiGrid{grid-template-columns:1fr}
 .atlasAnalyticsSvg{min-width:280px}
}

/* Optimiza Google Calendar onboarding: explicit staff association and OAuth diagnostics. */
.optimizaCalendarAssociate{display:grid;gap:10px;min-width:0;margin:14px 0;padding:14px;border:1px solid #cde8dc;background:#f6fbf8;border-radius:12px}
.optimizaCalendarAssociate .field{width:100%;min-width:0}
.optimizaCalendarAssociate select{width:100%;min-height:45px}
.optimizaCalendarAssociate .btn{width:fit-content;min-height:44px}
.optimizaCalendarAssociate .muted{margin:0}
.optimizaCalendarHelp{margin-top:13px;padding:13px 15px;border:1px solid #dbe7eb;background:#fbfcfd;border-radius:12px}
.optimizaCalendarHelp summary{font-weight:730;cursor:pointer;font-size:13px;color:#2d6460}
.optimizaCalendarHelp p{font-size:12px;line-height:1.6;color:#59717e}
.optimizaCalendarHelp code{font-size:11px;overflow-wrap:anywhere}
@media(max-width:740px){
 .optimizaCalendarAssociate{padding:13px 12px}
 .optimizaCalendarAssociate select{font-size:16px}
 .optimizaCalendarAssociate .btn{width:100%;min-height:46px}
}

/* Per-service landing images selected from each company's own media library. */
.optimizaServiceListItem{display:flex;align-items:center;gap:14px;min-width:0}
.optimizaServiceListItem>div{min-width:0;flex:1}
.optimizaServiceListThumb{width:78px;height:78px;border-radius:11px;object-fit:cover;background:#e5ecea;flex:none}
.optimizaServiceImagePicker{display:grid;gap:11px;min-width:0;padding:16px;border:1px solid #dce9e8;border-radius:13px;background:#f8fcfa}
.optimizaServiceImagePicker>strong{font-size:14px;color:#20534a}
.optimizaServiceImagePicker>.muted{margin:0;font-size:12px;line-height:1.5}
.optimizaServiceImagePicker select,.optimizaServiceImagePicker input{width:100%;min-width:0}
.optimizaServiceImagePreview{min-height:120px;aspect-ratio:16/9;width:100%;display:grid;place-items:center;border:1px dashed #cbdedb;background:white;border-radius:11px;overflow:hidden}
.optimizaServiceImagePreview img{display:block;width:100%;height:100%;object-fit:cover}
.optimizaServiceImagePreview .muted{padding:15px;text-align:center}
.optimizaServiceImagePicker input[type=file]{padding:11px 8px;font-size:13px}
.optimizaBookingShareCard{margin:10px 0 18px;background:#f3fbf7;border:1px solid #bee8d6;border-radius:15px;padding:17px 18px;min-width:0}
.optimizaBookingShareCard p{margin:5px 0 13px;font-size:13px;line-height:1.6;color:#54716a}
.optimizaBookingShareHeading{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:16px;color:#155a48}
.optimizaBookingShareHeading .btn{min-height:36px;min-width:36px;padding:5px 8px;font-size:19px}
.optimizaBookingShareActions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:9px}
.optimizaBookingShareActions .btn{font-size:12px;min-height:41px;padding:9px 13px;white-space:normal}
.optimizaBookingShareActions .opsMessageActions{display:flex;gap:7px;flex-wrap:wrap}
@media(max-width:740px){
 .optimizaServiceListThumb{width:60px;height:60px}
 .optimizaServiceImagePicker{padding:12px;gap:10px}
 .optimizaServiceImagePicker input,.optimizaServiceImagePicker select{font-size:16px;min-height:44px}
 .optimizaBookingShareCard{padding:14px 12px}
 .optimizaBookingShareActions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .optimizaBookingShareActions .opsMessageActions{grid-column:1/-1}
 .optimizaBookingShareActions .btn{min-width:0;min-height:44px}
}
@media(max-width:360px){
 .optimizaBookingShareActions{grid-template-columns:1fr}
}


/* Subscription overview: one identity, one balance, progressively disclosed actions. */
.acSubscriptions{min-width:0;max-width:100%}
.acSubscriptions>.page-title{margin-bottom:18px}
.acSubTabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:16px}
.acSubTabs .btn{width:100%;min-width:0;min-height:44px;margin:0;padding:10px 12px;white-space:normal}
.acSubTabs .btn span{margin-left:4px;opacity:.75;font-variant-numeric:tabular-nums}
.acSubRow{min-width:0;padding:18px 0;border-bottom:1px solid #e2e9ee}
.acSubRow:first-child{padding-top:0}.acSubRow:last-child{border-bottom:0;padding-bottom:0}
.acSubIdentity{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.acSubIdentity>div:first-child{min-width:0}
.acSubIdentity h3{font-size:16px;line-height:1.3;margin:0 0 4px;overflow-wrap:anywhere}
.acSubIdentity p{font-size:13px;color:#607480;margin:0;overflow-wrap:anywhere}
.acSubPrice{flex:none;font-size:16px;font-weight:700;text-align:right;font-variant-numeric:tabular-nums}
.acSubPrice small{display:block;color:#607480;font-size:11px;font-weight:400}
.acSubMeta{display:flex;gap:8px 14px;align-items:center;flex-wrap:wrap;margin:12px 0}
.acSubBalance{font-size:12px;color:#315e57}.acSubBalance strong{font-size:16px;font-variant-numeric:tabular-nums}
.acSubStatus{font-size:11px;line-height:1.4;color:#526b78;background:#f0f4f5;border-radius:6px;padding:5px 8px;overflow-wrap:anywhere}
.acSubStatus.isDebt{color:#9a302b;background:#fff0ee}.acSubStatus.isPending{color:#805512;background:#fff6e4}
.acSubDue{color:#607480;font-size:12px;margin:0 0 10px}
.acSubActions{display:flex;gap:8px;flex-wrap:wrap}
.acSubActions .btn{min-height:44px;margin:0;padding:10px 14px;font-size:13px;line-height:1.3;white-space:normal;box-sizing:border-box}
.acSubDetails{margin-top:12px;font-size:12px;color:#607480}
.acSubDetails>summary{width:fit-content;min-height:32px;padding:5px 0;cursor:pointer;color:#2c655d}
.acSubDetails>div{padding:8px 0 0}.acSubDetails p{margin:4px 0 10px}
.acSubDetails .btn{min-height:44px;margin:4px 0 0}
.acSubPlanSettings{margin:18px 0;min-width:0}
.acSubPlanSettings>summary{padding:13px 16px;border:1px solid #dce5e9;border-radius:10px;background:#fff;color:#31545f;cursor:pointer;font-size:14px}
.acSubPlanSettings[open]>summary{margin-bottom:14px}
/* Bound form controls by the available content width, including native iOS date controls. */
#appShell .opsForm,#appShell .opsForm .field{min-width:0;max-width:100%;box-sizing:border-box}
#appShell .opsForm .field>input,#appShell .opsForm .field>select,#appShell .opsForm .field>textarea{box-sizing:border-box;min-width:0;max-width:100%;width:100%;margin-left:0;margin-right:0}
#appShell .opsForm .field>input:not([type=checkbox]):not([type=radio]),#appShell .opsForm .field>select{height:46px;min-height:46px;padding:10px 12px;line-height:1.4}
#appShell .opsForm input[type=date],#appShell .opsForm input[type=time],#appShell .opsForm input[type=datetime-local]{appearance:none;-webkit-appearance:none;text-align:left;display:block;min-inline-size:0}
#appShell .opsForm input::-webkit-date-and-time-value{text-align:left;min-height:1.4em}
#subscriptionPaymentEditor{max-width:100%;min-width:0;scroll-margin-top:85px}
#subscriptionPaymentEditor .opsForm>p{margin:0;font-size:12px;line-height:1.5}
#subscriptionPaymentEditor .opsForm .opsActions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#subscriptionPaymentEditor .opsForm .opsActions>.btn{width:100%;min-width:0;min-height:46px;margin:0;padding:10px 12px;white-space:normal}
@media(max-width:740px){
 .acSubscriptions>.page-title h1{font-size:24px;line-height:1.2;margin-bottom:7px}
 .acSubscriptions>.page-title p{font-size:13px;line-height:1.45;margin:0}
 .acSubscriptions>.opsCard,.acSubscriptions #subscriptionPaymentEditor>.opsCard{padding:16px}
 .acSubscriptions .opsCardHead{margin-bottom:16px}
 .acSubscriptions .opsCardHead h3{font-size:16px}
 .acSubActions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 .acSubActions .btn{width:100%;padding:10px 8px;font-size:13px}
 #appShell .opsForm .field>input,#appShell .opsForm .field>select,#appShell .opsForm .field>textarea{font-size:16px}
 #subscriptionPaymentEditor .opsCardHead h3{font-size:17px;overflow-wrap:anywhere}
 #subscriptionPaymentEditor .opsForm .field{font-size:13px;line-height:1.4}
 #subscriptionPaymentEditor .opsForm .field>textarea{min-height:88px;padding:10px 12px}
}

/* Single renewal deadline, with the actual receipt date kept separately. */
.acSubDates{margin:10px 0 16px;font-size:13px}
.acSubDates>div{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid #e2e9ee}
.acSubDates>div:last-child{border-bottom:0}
.acSubDates dt{color:#607480}.acSubDates dd{margin:0;font-weight:650;white-space:nowrap;font-variant-numeric:tabular-nums}
.acSubHistoryLink{border:0;background:transparent;color:#23786d;padding:10px 0;min-height:44px;font-size:12px;text-align:left}
.acSubRow>.opsActions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.acSubRow>.opsActions>.btn{width:100%;min-width:0!important;margin:0}
@media(max-width:360px){.acSubDates>div{display:block}.acSubDates dd{margin-top:4px}}

/* Review requests: the link form collapses once a link is configured. */
.opsReviewSetup>summary{cursor:pointer;font-size:13px;font-weight:600;color:#126b64;padding:6px 0;min-height:32px}
.opsReviewSetup[open]>summary{margin-bottom:12px}

/* AF client record: read-first summary, services and payment ledger. */
.afFicha .opsKpiTile small{font-size:12px;line-height:1.35}
.afTileAlert{border-color:#f1d7a8;background:#fffaf0}
.afTileAlert .opsKpiValue{color:#935d21}
.afFichaShortcuts{margin-top:12px}
.afFichaHint{margin:0 0 18px}
.afFicha>.opsCard{margin-bottom:18px}
.afLedgerRow{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:8px 16px;padding:14px 0;border-bottom:1px solid #e5ebef}
.afLedgerRow:last-of-type{border-bottom:none}
.afLedgerMain{display:grid;gap:3px;min-width:0;overflow-wrap:anywhere}
.afLedgerMain strong{font-size:14px;color:#243d4f}
.afLedgerMain .muted{font-size:12px}
.afLedgerAmount{font-size:15px;font-variant-numeric:tabular-nums;white-space:nowrap;text-align:right;color:#162338}
.afLedgerTags{display:flex;flex-wrap:wrap;gap:6px;grid-column:1/-1}
.afLedgerRow>.opsActions,.afLedgerRow>.afFichaInline{grid-column:1/-1}
.afFichaInline{background:#f6f9fa;border:1px solid #e2eaed;border-radius:13px;padding:14px;margin-top:4px}
.afFichaAdd{margin-top:14px}
.afFichaSection{background:#fff;border:1px solid #e2e9ee;border-radius:16px;margin-bottom:12px;box-shadow:0 2px 8px #112d4009}
.afFichaSection>summary{cursor:pointer;padding:16px 22px;font-size:15px;font-weight:700;color:#243d4f;min-height:44px}
.afFichaSection[open]>summary{border-bottom:1px solid #e5ebef}
.afFichaSection>:not(summary){margin:18px 22px}
.afFichaSection>.opsCard{border:0;box-shadow:none;padding:0}
@media(max-width:760px){
 .afFichaSection>summary{padding:14px 16px}
 .afFichaSection>:not(summary){margin:14px 16px}
 .afLedgerAmount{font-size:14px}
}
@media(min-width:761px){
 /* Row actions stay compact on wide screens so the ledger reads as a list. */
 #appShell .afFicha :is(.afLedgerRow>.opsActions,.afFichaAdd,.afFichaShortcuts)>:is(.btn,a.btn,button.btn){flex:0 0 auto;width:auto;min-height:36px;padding:8px 14px}
 .afLedgerRow{grid-template-columns:minmax(0,1fr) auto auto}
 .afLedgerRow>.afLedgerTags{grid-column:1/2;grid-row:2}
 .afLedgerRow>.opsActions{grid-column:2/-1;grid-row:2;justify-content:flex-end}
 .afLedgerRow>.afLedgerAmount{grid-column:2/-1}
}

/* Agenda on phones: the Google sync action sits on the title row, small and right-aligned,
   so the calendar starts higher on the screen. Desktop already places it there. */
@media(max-width:740px){
 #appShell .opsAgendaPageTitle{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:10px;row-gap:2px;margin-bottom:10px}
 #appShell .opsAgendaPageTitle>div:first-child{display:contents}
 #appShell .opsAgendaPageTitle h1{grid-column:1;grid-row:1;margin:0}
 #appShell .opsAgendaPageTitle .atlasAgendaGoogleToolbar{grid-column:2;grid-row:1;width:auto;margin:0}
 #appShell .opsAgendaPageTitle .atlasAgendaGoogleToolbar .btn{width:auto;min-width:0;min-height:40px;padding:7px 12px;font-size:12px;white-space:nowrap}
 #appShell .opsAgendaPageTitle p.muted{grid-column:1/-1;grid-row:2;margin:0}
}

/* Agenda on wide screens: same idea as on phones. The title row is tighter and the
   calendar controls share rows instead of stacking, so the calendar starts higher. */
@media(min-width:741px){
 #appShell .opsAgendaPageTitle{align-items:center;margin-bottom:12px}
 #appShell .opsAgendaPageTitle .atlasAgendaGoogleToolbar .btn{min-height:40px;min-width:0;padding:8px 14px;white-space:nowrap}
 #appShell .opsAgendaToolbar{grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px 16px;padding:14px 16px}
 #appShell .opsAgendaTopRow{display:contents}
 #appShell .opsAgendaViewTabs{grid-column:1;grid-row:1}
 #appShell .opsAgendaPeriod{grid-column:2;grid-row:1;justify-content:flex-start}
 #appShell .opsAgendaPeriod .opsAgendaToday{margin-left:4px}
 #appShell .opsNewBooking{grid-column:3;grid-row:1;justify-self:end}
 #appShell .opsAgendaFilters{grid-column:1/-1;grid-row:2}
}
@media(min-width:1440px){
 #appShell .opsAgendaToolbar{grid-template-columns:auto auto minmax(0,1fr) auto;align-items:end}
 #appShell .opsAgendaViewTabs,#appShell .opsAgendaPeriod,#appShell .opsNewBooking{align-self:end}
 #appShell .opsAgendaFilters{grid-column:3;grid-row:1;justify-self:end;width:100%;max-width:460px}
 #appShell .opsNewBooking{grid-column:4}
}

/* Agenda appointments: compact row, actions open on tap. */
#appShell .opsAppointmentHead{display:grid;gap:2px;width:100%;min-height:0;text-align:left;background:transparent;border:0;border-radius:0;padding:0;margin:0;color:inherit;font:inherit;box-shadow:none;cursor:pointer}
.opsAppointmentHead .opsAppointmentTime{margin:0}
.opsAppointmentHead .muted{overflow-wrap:anywhere}
.opsAppointmentMeta{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-top:5px}
.opsAppointmentChevron{margin-left:auto;color:#59707e;font-size:14px;line-height:1}
.opsAppointment.isOpen .opsAppointmentChevron{transform:rotate(180deg)}
.opsAppointment.isOpen{background:#fff;box-shadow:0 2px 10px rgba(13,34,51,.08)}
.opsAppointmentBody{margin-top:9px;padding-top:9px;border-top:1px solid #e2e9ee}
.opsAppointmentBody[hidden]{display:none!important}
#appShell .opsAppointment.isOpen .opsAppointmentBody .opsActions{display:flex;flex-wrap:wrap;gap:6px;margin-top:0}
#appShell .opsAppointmentBody :is(.opsActions,.optimizaBookingShareActions,.opsMessageActions){display:flex;flex-wrap:wrap;gap:6px;margin:0}
#appShell .opsAppointmentBody .optimizaBookingShareActions{flex:1 1 100%}
#appShell .opsAppointmentBody :is(.btn,.opsBtn,a.btn){flex:1 1 auto;width:auto;min-width:0;min-height:38px;padding:8px 12px!important;font-size:12px!important;white-space:nowrap}
#appShell .opsAppointmentBody .opsAppointmentPrimary{flex:1 1 100%;background:#127a6b;border-color:#127a6b;color:#fff}
/* Time and status share the first line where the card is wide enough. */
#appShell .opsAppointmentHead{grid-template-columns:minmax(0,1fr) auto;align-items:center}
.opsAppointmentHead>strong,.opsAppointmentHead>.muted{grid-column:1/-1}
.opsAppointmentHead>.opsAppointmentMeta{grid-column:2;grid-row:1;margin-top:0;flex-wrap:nowrap}
.opsAppointmentHead .tag{padding:3px 8px;font-size:10px}
@media(min-width:741px){
 /* Week columns are narrow on desktop: status goes under the customer line. */
 #appShell .opsCalendar.week .opsAppointmentHead{grid-template-columns:minmax(0,1fr)}
 .opsCalendar.week .opsAppointmentHead>.opsAppointmentMeta{grid-column:1;grid-row:auto;margin-top:4px;flex-wrap:wrap}
 #appShell .opsCalendar.week .opsAppointmentBody :is(.btn,.opsBtn,a.btn){flex:1 1 100%;white-space:normal}
}
#appShell .opsAppointmentBody .opsAppointmentPrimary{background:#117b70!important;border-color:#117b70!important;color:#fff!important}
.opsAppointmentBody>aside{margin-bottom:9px}

/* Agenda: lighter surfaces. White throughout; green only as an outline on what is selected. */
#appShell .opsDay.isToday{background:#fff}
#appShell .opsAppointment{background:#fff;border:1px solid #e3eaee;border-left:4px solid var(--opsStaffColor,#88aabd)}
#appShell .opsAppointment.isOpen{box-shadow:0 0 0 1.5px #5bb69a}
#appShell .opsWeekStrip button.isSelected{background:#fff;border-color:#309b83;box-shadow:inset 0 0 0 1px #309b83}
#appShell .opsMonthDay.isSelected{background:#fff}

/* Agenda: appointment count beside the period, and a booking form that does not push the day off screen. */
.opsAgendaCount{display:block;margin-top:2px;font-size:11px;font-weight:600;letter-spacing:0;color:#5b7183}
.opsApptBusy{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:-4px 0 14px}
.opsApptBusyLabel{font-size:12px;font-weight:700;color:#3b5566;margin-right:4px}
.opsApptBusy .tag{padding:3px 8px;font-size:10px}
.opsApptForm>.muted{margin:0;font-size:12px}
@media(min-width:741px){
 #appShell .opsApptForm{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 14px;align-items:end}
 #appShell .opsApptForm>.muted{grid-column:1/-1}
 #appShell .opsApptForm>.btn{grid-column:1/-1;justify-self:end;width:auto;min-width:200px;margin-top:0}
}
@media(min-width:1280px){
 #appShell .opsApptForm{grid-template-columns:repeat(4,minmax(0,1fr))}
 #appShell .opsApptForm>.muted{grid-column:1/span 3;align-self:center}
 #appShell .opsApptForm>.btn{grid-column:4;justify-self:stretch;min-width:0}
}
@media(max-width:740px){
 /* On phones the two dates share a row; the day summary stays on top of the form. */
 #appShell .opsApptForm{gap:10px}
}
@media(max-width:740px){
 #appShell .opsApptForm{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 #appShell .opsApptForm>:is(.muted,.btn),
 #appShell .opsApptForm>label:has(#opsApptContact,#opsApptTitle,#opsApptStart,#opsApptEnd){grid-column:1/-1}
 #appShell .opsApptForm>label:has(#opsApptVehicle){grid-column:1/-1}
 #appShell .opsApptForm select{min-width:0;width:100%}
}
#appShell .opsCard:has(#opsNewAppointment){margin-bottom:14px}

/* Appointment status: a three-step track, one button for the next step, quiet ways out. */
.opsApptFlow{list-style:none;display:flex;align-items:flex-start;margin:2px 0 12px;padding:0}
.opsApptFlow li{position:relative;flex:1 1 0;min-width:0;display:grid;justify-items:center;gap:4px;font-size:11px;font-weight:600;color:#8496a3;text-align:center}
.opsApptFlow li::before{content:"";position:absolute;top:10px;right:50%;width:100%;height:2px;background:#e1e8ec}
.opsApptFlow li:first-child::before{display:none}
.opsApptFlow li.isDone::before,.opsApptFlow li.isCurrent::before{background:#5bb69a}
.opsApptFlow i{position:relative;z-index:1;display:grid;place-items:center;width:22px;height:22px;border-radius:50%;font-style:normal;font-size:11px;font-weight:700;background:#fff;border:2px solid #d5dfe4;color:#8496a3}
.opsApptFlow li.isDone i{background:#5bb69a;border-color:#5bb69a;color:#fff}
.opsApptFlow li.isCurrent{color:#137665}
.opsApptFlow li.isCurrent i{border-color:#137665;color:#137665;box-shadow:0 0 0 3px #e3f4ee}
.opsApptFlow li.isDone{color:#3b6b5e}
.opsApptClosed{margin:0 0 10px;font-size:12px;color:#5b7183}
.opsApptNext{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px}
#appShell .opsApptNext>.btn{flex:1 1 180px;width:auto;min-height:40px}
.opsApptExits{display:flex;gap:14px;margin-left:auto}
#appShell .opsApptExit{background:none;border:0;box-shadow:none;padding:6px 0;min-height:32px;width:auto;font-size:12px;font-weight:600;color:#5b7183;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
#appShell .opsApptExit:hover{color:#935d21}
#appShell .opsAppointmentBody .opsApptShare{margin-top:10px;padding-top:10px;border-top:1px dashed #e2e9ee}
.opsAppointment.isCancelled .opsAppointmentHead strong{text-decoration:line-through;color:#7d8f9b}
.opsAppointment.isCancelled{border-left-color:#c9d3d9!important}
.opsCancelledToggle{margin:10px 2px 0;text-align:right}

/* Week view on wide screens: columns are too narrow for the open appointment, so its
   details float beside the card as a panel instead of being squeezed into the column. */
@media(min-width:741px){
 #appShell .opsCalendar.week{overflow:visible}
 .opsCalendar.week>.opsDay:first-child{border-radius:16px 0 0 16px}
 .opsCalendar.week>.opsDay:last-child{border-radius:0 16px 16px 0;border-right:0}
 .opsCalendar.week .opsAppointment{position:relative}
 #appShell .opsCalendar.week .opsAppointment.isOpen .opsAppointmentBody{position:absolute;z-index:30;top:calc(100% + 8px);left:-5px;width:380px;max-width:min(380px,calc(100vw - 300px));margin:0;padding:16px;background:#fff;border:1px solid #cfe3db;border-radius:14px;box-shadow:0 14px 36px rgba(13,34,51,.18)}
 #appShell .opsCalendar.week>.opsDay:nth-child(n+5) .opsAppointment.isOpen .opsAppointmentBody{left:auto;right:-5px}
 #appShell .opsCalendar.week .opsAppointmentBody :is(.btn,.opsBtn,a.btn){flex:1 1 auto;white-space:nowrap}
 #appShell .opsCalendar.week .opsAppointmentBody .opsApptNext>.btn{flex:1 1 180px}
}

/* Service editor: grouped fields, paired prices, duration shortcuts and a save bar that stays in view. */
.opsServiceEditor{gap:20px}
.opsFormGroup{display:grid;gap:13px;padding-top:18px;border-top:1px solid #e5ebef;min-width:0}
.opsFormGroup:first-child{padding-top:0;border-top:0}
.opsFormGroup>h4{margin:0;font-size:11px;font-weight:800;letter-spacing:1px;text-transform:uppercase;color:#0c866e}
.opsFormGroup>.muted{margin:-6px 0 0;font-size:12px;line-height:1.45}
.opsFormPair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.opsFormPair .field{margin:0;min-width:0}
.opsFormPair input{width:100%;min-width:0}
.opsDurationChips{display:flex;flex-wrap:wrap;gap:6px;margin-top:-5px}
#appShell .opsChip{flex:0 0 auto;width:auto;min-height:34px;padding:6px 13px;border:1px solid #d8e4e8;border-radius:999px;background:#fff;color:#3b5566;font-size:12px;font-weight:700;box-shadow:none;cursor:pointer}
#appShell .opsChip.isActive{border-color:#309b83;color:#137665;box-shadow:inset 0 0 0 1px #309b83}
.opsServiceEditor .switch{align-items:flex-start;gap:11px;font-size:14px;font-weight:650;color:#243d4f;cursor:pointer}
.opsServiceEditor .switch input{flex:none;margin:2px 0 0}
.opsServiceEditor .switch small{display:block;margin-top:2px;font-size:12px;font-weight:400;line-height:1.4;color:#6b7f8c}
.optimizaServiceImagePreview.isEmpty{aspect-ratio:auto;min-height:0}
.optimizaServiceImagePreview.isEmpty .muted{padding:12px}
.opsFormSave{position:sticky;bottom:0;z-index:5;margin:0 -22px -22px;padding:12px 22px;background:#fff;border-top:1px solid #e5ebef;border-radius:0 0 16px 16px}
#appShell .opsFormSave .btn{width:100%;margin:0}
@media(max-width:700px){.opsFormSave{margin:0 -15px -15px;padding:10px 15px calc(10px + env(safe-area-inset-bottom,0px))}}
/* The sheet has bottom padding; pull the save bar down so nothing shows beneath it. */
.atlasDetailSheet .opsFormSave{bottom:-36px}
@media(max-width:700px){.atlasDetailSheet .opsFormSave{bottom:-30px}}

/* Page-drawn searchable dropdown (desktop). Mirrors the look of the native fields. */
.opsCombo{position:relative;min-width:0}
.opsComboNative{position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;padding:0!important;border:0!important;opacity:0;pointer-events:none}
#appShell .opsComboButton{display:block;width:100%;min-height:44px;padding:11px 34px 11px 12px;border:1px solid #dce4ea;border-radius:10px;background:#fff;color:#263749;font:inherit;font-size:13px;font-weight:650;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-shadow:none;cursor:pointer;position:relative}
#appShell .opsComboButton::after{content:"";position:absolute;right:13px;top:50%;width:7px;height:7px;margin-top:-6px;border-right:2px solid #5b7183;border-bottom:2px solid #5b7183;transform:rotate(45deg)}
#appShell .opsComboButton.isPlaceholder{color:#6b7f8c;font-weight:600}
#appShell .opsComboButton[aria-expanded="true"]{border-color:#309b83;box-shadow:0 0 0 3px #e3f4ee}
.opsComboPanel{position:absolute;z-index:60;top:calc(100% + 6px);left:0;right:0;min-width:240px;background:#fff;border:1px solid #d8e4e8;border-radius:12px;box-shadow:0 14px 36px rgba(13,34,51,.18);padding:8px}
.opsComboPanel[hidden]{display:none}
#appShell .opsComboSearch{width:100%;min-height:38px;margin-bottom:6px;padding:8px 10px;border:1px solid #dce4ea;border-radius:9px;font-size:13px}
.opsComboList{max-height:264px;overflow-y:auto;display:grid;gap:1px}
#appShell .opsComboOption{display:block;width:100%;min-height:36px;padding:8px 10px;border:0;border-radius:8px;background:transparent;color:#263749;font:inherit;font-size:13px;font-weight:500;text-align:left;box-shadow:none;cursor:pointer;white-space:normal}
#appShell .opsComboOption:hover,#appShell .opsComboOption.isActive{background:#eef6f3}
#appShell .opsComboOption.isSelected{font-weight:700;color:#137665}
.opsComboEmpty{margin:8px 10px;font-size:13px;color:#6b7f8c}

/* Companies with their client and payment state: one compact row each. */
.afCompanyRows{display:grid}
.afCompanyRow{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:8px 16px;padding:12px 0;border-bottom:1px solid #e5ebef}
.afCompanyRow:last-child{border-bottom:0}
.afCompanyRowMain{display:grid;gap:2px;min-width:0;overflow-wrap:anywhere}
.afCompanyRowMain strong{font-size:14px;color:#243d4f}
.afCompanyRowMain .muted{font-size:12px}
#appShell .afCompanyRow>.opsActions{flex-wrap:nowrap;justify-content:flex-end}
#appShell .afCompanyRow>.opsActions>.btn{flex:0 0 auto;width:auto;min-height:36px;white-space:nowrap}
@media(max-width:740px){
 .afCompanyRow{grid-template-columns:minmax(0,1fr) auto}
 .afCompanyRow>.opsActions{grid-column:1/-1}
 #appShell .afCompanyRow>.opsActions>.btn{flex:1 1 0}
}


/* Optimiza KPI cockpit: colored 2x2 swipe pages, keyboard-accessible cards. */
.opsKpiSection{margin:0 0 22px;min-width:0}
.opsKpiCarousel{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none;-webkit-overflow-scrolling:touch;min-width:0}
.opsKpiCarousel::-webkit-scrollbar{display:none}
.opsKpiSlide{flex:0 0 100%;min-width:0;scroll-snap-align:start;scroll-snap-stop:always}
.opsKpiSlide .opsKpiGrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0}
#appShell .opsKpiTile{appearance:none;width:100%;font:inherit;text-align:left;cursor:pointer;min-height:132px;color:var(--kpi-fg);background:var(--kpi-bg);border:1px solid transparent;border-radius:17px;box-shadow:none;display:flex;flex-direction:column;align-items:flex-start;gap:7px;padding:17px;transition:transform .15s ease,box-shadow .15s ease}
#appShell .opsKpiTile:hover{transform:translateY(-2px);box-shadow:0 6px 18px #16354016}
#appShell .opsKpiTile:focus-visible{outline:3px solid #147a6a;outline-offset:3px}
#appShell .opsKpiTile .opsKpiIcon{width:auto;height:auto;background:transparent;border-radius:0;color:var(--kpi-fg);font-size:25px}
#appShell .opsKpiTile .opsKpiValue{color:var(--kpi-fg);font-size:clamp(20px,2vw,28px)}
#appShell .opsKpiTile .opsKpiLabel,#appShell .opsKpiTile small{color:var(--kpi-fg);line-height:1.3}
.opsKpiArrow{font-size:17px;font-weight:700;opacity:.8}
.opsKpiTone-green{--kpi-bg:#e7f5f0;--kpi-fg:#136e5c}
.opsKpiTone-blue{--kpi-bg:#e9f0fc;--kpi-fg:#305db3}
.opsKpiTone-amber{--kpi-bg:#fff1df;--kpi-fg:#96550b}
.opsKpiTone-purple{--kpi-bg:#f3eafe;--kpi-fg:#7940b1}
.opsKpiTone-rose{--kpi-bg:#fbeaf0;--kpi-fg:#a84370}
.opsKpiDots{display:none;align-items:center;justify-content:center;gap:8px;margin-top:13px}
#appShell .opsKpiDots button{flex:0 0 auto;padding:0;width:8px;height:8px;min-width:8px;min-height:8px;border:0;border-radius:100px;background:#d0dce0;box-shadow:none;cursor:pointer}
#appShell .opsKpiDots button.isActive{width:24px;background:#168672}
#appShell .opsKpiDots button:focus-visible{outline:2px solid #168672;outline-offset:4px}
@media(max-width:740px){
 .opsKpiSlide .opsKpiGrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 #appShell .opsKpiTile{min-height:126px;padding:13px;gap:7px}
 #appShell .opsKpiTile .opsKpiValue{font-size:clamp(19px,5vw,26px)}
 #appShell .opsKpiTile .opsKpiIcon{font-size:22px}
 #appShell .opsKpiTile .opsKpiLabel{font-size:11px}
 .opsKpiDots{display:flex}
}
@media(prefers-reduced-motion:reduce){#appShell .opsKpiTile{transition:none}#appShell .opsKpiTile:hover{transform:none}}


/* Contextual filters opened from the dashboard. */
.opsDashboardFilterBanner{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;background:#e9f5f0;border:1px solid #b9dfd2;border-radius:12px;padding:12px 15px;margin:0 0 15px;color:#155f51;font-size:13px}
#appShell .opsDashboardFilterBanner button{border:1px solid #9dcdbd;border-radius:9px;background:#fff;color:#146e5c;padding:7px 12px;min-height:36px;cursor:pointer;font:inherit;font-weight:700;font-size:12px}
#appShell .opsDashboardFilterBanner button:focus-visible{outline:3px solid #168672;outline-offset:2px}


/* Optimiza booking request cockpit: dense information, accessible actions, mobile first. */
.opsRequestSummary{margin:0 0 12px}
.opsRequestMetrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
#appShell .opsRequestMetric{--request-bg:#e9f0fc;--request-color:#305db3;display:flex;flex-direction:column;gap:7px;align-items:flex-start;min-width:0;min-height:116px;width:100%;padding:14px;border:1.5px solid transparent;border-radius:15px;background:var(--request-bg);color:var(--request-color);text-align:left;box-shadow:none;cursor:pointer;font:inherit}
#appShell .opsRequestMetric-blue{--request-bg:#e9f0fc;--request-color:#305db3}
#appShell .opsRequestMetric-amber{--request-bg:#fff1df;--request-color:#96550b}
#appShell .opsRequestMetric-purple{--request-bg:#f3eafe;--request-color:#7940b1}
#appShell .opsRequestMetric-green{--request-bg:#e7f5f0;--request-color:#136e5c}
#appShell .opsRequestMetric.isActive{border-color:var(--request-color)}
#appShell .opsRequestMetric:focus-visible{outline:3px solid #168672;outline-offset:3px}
.opsRequestMetricHead{display:flex;align-items:center;justify-content:space-between;width:100%;line-height:1}
.opsRequestMetricIcon{font-size:21px;font-weight:750}
.opsRequestMetricArrow{font-size:15px;opacity:.75}
.opsRequestMetricValue{font-size:clamp(22px,2.5vw,30px);line-height:1.15;font-weight:800;font-variant-numeric:tabular-nums;color:inherit}
.opsRequestMetricName{font-size:12px;font-weight:700;line-height:1.25;color:inherit}
.opsRequestFilters{display:flex;align-items:center;gap:7px;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;padding:3px 1px 11px;margin-bottom:8px}
.opsRequestFilters::-webkit-scrollbar{display:none}
#appShell .opsRequestFilter{flex:0 0 auto;display:inline-flex;align-items:center;gap:7px;min-height:37px;padding:8px 13px;background:#fff;border:1px solid #d9e4e8;color:#526878;border-radius:999px;box-shadow:none;font:inherit;font-size:12px;font-weight:700;white-space:nowrap;cursor:pointer}
#appShell .opsRequestFilter.isActive{background:#e7f5f0;border-color:#91c8b7;color:#116c59}
#appShell .opsRequestFilter span{font-variant-numeric:tabular-nums;opacity:.8}
#appShell .opsRequestFilter:focus-visible{outline:2px solid #168672;outline-offset:2px}
.opsRequestsDirectory{align-items:start}
#appShell .opsRequestCardCompact{padding:15px;border-radius:16px;display:flex;flex-direction:column;gap:11px;min-width:0}
.opsRequestHead{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.opsRequestIdentity{display:grid;gap:4px;min-width:0}
.opsRequestIdentity strong{font-size:15px;line-height:1.3;color:#20374a;overflow-wrap:anywhere}
.opsRequestContact{font-size:12px;color:#657b8a;overflow-wrap:anywhere}
.opsRequestStatus{flex:0 0 auto;border-radius:999px;padding:5px 9px;font-size:11px;line-height:1.3;font-weight:750;white-space:nowrap}
.opsRequestStatus-amber{background:#fff1df;color:#96550b}
.opsRequestStatus-blue{background:#e9f0fc;color:#305db3}
.opsRequestStatus-green{background:#e7f5f0;color:#136e5c}
.opsRequestStatus-gray{background:#eef2f4;color:#5b707d}
.opsRequestFacts{display:grid;gap:7px}
.opsRequestFacts>div{display:flex;align-items:flex-start;gap:8px;color:#536b7c;font-size:12px;line-height:1.45;min-width:0}
.opsRequestFacts>div>span:last-child{min-width:0;overflow-wrap:anywhere}
.opsRequestFactIcon{display:grid;place-items:center;flex:0 0 20px;color:#168672;font-size:17px;font-weight:750;line-height:1.2}
.opsRequestDetails{border-top:1px solid #e5edf0;padding-top:9px}
.opsRequestDetails>summary{color:#177d6c;font-size:12px;font-weight:750;cursor:pointer}
.opsRequestDetails>p{font-size:12px;line-height:1.5;margin:8px 0 0;color:#556f7f;overflow-wrap:anywhere}
.opsRequestFooter{display:flex;align-items:center;justify-content:space-between;gap:8px 12px;flex-wrap:wrap;padding-top:11px;border-top:1px solid #e9eff1}
.opsRequestActions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;flex:1 1 auto}
#appShell .opsRequestActions :is(.btn,a.btn){min-height:37px;padding:8px 13px;min-width:0;width:auto;font-size:12px;white-space:normal}
.opsRequestStatusControl{display:flex;align-items:center;gap:8px;color:#637989;font-size:11px;font-weight:650;min-width:0}
#appShell .opsRequestStatusControl select{min-height:39px;max-width:175px;width:auto;padding:7px 10px;border:1px solid #dbe5e9;border-radius:9px;background:#fff;color:#30485b;font-size:12px}
@media(max-width:740px){
 .opsRequestMetrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 #appShell .opsRequestMetric{min-height:103px;padding:12px;gap:5px}
 .opsRequestMetricIcon{font-size:20px}
 .opsRequestMetricValue{font-size:26px}
 .opsRequestMetricName{font-size:11px}
 #appShell .opsRequestCardCompact{padding:13px;gap:10px}
 .opsRequestHead{gap:8px}
 .opsRequestIdentity strong{font-size:14px}
 .opsRequestFooter{align-items:stretch}
 .opsRequestActions{flex:1 1 100%}
 #appShell .opsRequestActions :is(.btn,a.btn){flex:1 1 0}
 .opsRequestStatusControl{width:100%;justify-content:space-between}
 #appShell .opsRequestStatusControl select{min-width:125px;max-width:65%}
}


/* Execution and handover: one clear primary action per stage. */
.opsApptReady{display:flex;margin:10px 0 0;padding:10px 0;border-top:1px dashed #cde4da}
#appShell .opsApptReady>.btn{width:100%;min-height:44px;background:#e7f5f0!important;color:#136e5c!important;border:1px solid #98d1bf!important;font-size:13px!important;font-weight:750}
#appShell .opsApptReady>.btn:focus-visible{outline:3px solid #168672;outline-offset:2px}
.opsApptHint{margin:8px 0 0;color:#5b7183;font-size:12px;line-height:1.4}
.opsApptFlow li{overflow-wrap:normal}
@media(max-width:740px){
 .opsApptFlow li{font-size:10px;gap:5px}
 #appShell .opsApptReady>.btn{min-height:46px;white-space:normal}
}

/* AF Consulting pipeline: compact metrics and consistent destructive actions. */
#appShell .afMetrics .opsKpiTile{min-height:0;background:#fff;border:1px solid #e2eaf0;border-radius:14px;box-shadow:0 2px 10px rgba(12,35,48,.04);padding:15px;gap:4px}
#appShell .afMetrics .opsKpiValue{font-size:clamp(22px,3vw,30px);line-height:1.15;color:#172536}
#appShell .afMetrics .opsKpiLabel{font-size:13px;line-height:1.3;color:#526779}
#appShell .afLeadCard .afDeleteCustomer{color:#a33b46;border-color:#eed4d7;background:#fff}
#appShell .afLeadCard .afDeleteCustomer:hover{background:#fff5f5}
@media(max-width:740px){
 #appShell .afMetrics{gap:9px;margin:14px 0 18px}
 #appShell .afMetrics .opsKpiTile{min-height:74px;padding:12px;border-radius:13px}
 #appShell .afMetrics .opsKpiValue{font-size:25px}
 #appShell .afMetrics .opsKpiLabel{font-size:12px}
 #appShell .afHeading #afNewCustomer{width:auto;min-width:0;min-height:46px;align-self:flex-start;padding:11px 18px}
 #appShell .afLeadCard .opsActions .afDeleteCustomer{width:auto;min-height:36px;flex:0 0 auto;padding:8px 12px}
}


/* External Google availability: visually distinct, privacy-preserving busy slots. */
.opsExternalBusy{
 --externalBusyColor:#58a69a;
 min-width:0;display:flex;flex-direction:column;gap:4px;margin:8px 0;
 padding:11px 12px;border:1px solid #dce7e6;border-left:4px solid var(--externalBusyColor);
 border-radius:12px;background:#f6faf9;color:#254344;font-size:12px;line-height:1.4
}
.opsExternalBusy strong{font-size:12px;color:#137e70;font-weight:750}
.opsExternalBusy span{font-weight:650;overflow-wrap:anywhere}
.opsExternalBusy small{color:#647e81;font-size:11px}
.opsGoogleAgendaNotice{margin:10px 0}
@media(max-width:740px){
 .opsExternalBusy{padding:12px 13px;border-radius:11px;font-size:13px}
 .opsExternalBusy strong{font-size:12px}
}

.optimizaGoogleSyncChoices{display:grid;gap:10px;margin:14px 0;padding:14px;background:#f5f9f8;border:1px solid #dce9e6;border-radius:12px}
.optimizaGoogleSyncChoices>label{display:flex;align-items:flex-start;gap:10px;font-weight:650;color:#243348}
.optimizaGoogleSyncChoices input[type=checkbox]{flex:0 0 auto;accent-color:#118779;margin-top:3px}
.optimizaGoogleSyncChoices .muted{margin:0}


/* Google Calendar sync choices: readable labels and compact touch controls. */
#appShell .optimizaGoogleSyncChoices{min-width:0}
#appShell .optimizaGoogleSyncChoices>label{
 box-sizing:border-box;width:100%;min-width:0;display:flex;align-items:flex-start;gap:11px;
 padding:11px 12px;border:1px solid #dce8e6;border-radius:10px;background:#fff;
 color:#243348;font-weight:650;line-height:1.45;overflow-wrap:anywhere;cursor:pointer
}
#appShell .optimizaGoogleSyncChoices input[type=checkbox]{
 box-sizing:border-box;width:18px;min-width:18px;max-width:18px;height:18px;flex:0 0 18px;
 margin:2px 0 0;padding:0;accent-color:#118779
}
#appShell .optimizaGoogleSyncChoices>[data-google-configure]{width:auto;min-height:42px}
@media(max-width:740px){
 #appShell .optimizaGoogleSyncChoices{gap:9px;margin:12px 0;padding:12px}
 #appShell .optimizaGoogleSyncChoices>label{min-height:48px;align-items:center;padding:12px}
 #appShell .optimizaGoogleSyncChoices .muted{line-height:1.5}
 #appShell .optimizaGoogleSyncChoices>[data-google-configure]{width:100%;min-height:46px}
}


/* Agenda appointment quick actions stay visible on desktop and phone. */
#appShell .opsApptQuickActions{display:flex;align-items:center;gap:6px;margin-top:8px;min-width:0}
#appShell .opsApptQuickActions button{
 min-width:0;min-height:34px;padding:5px 9px;border:1px solid #d6e7e2;border-radius:8px;
 background:#eff7f5;color:#12695f;font:inherit;font-size:11px;font-weight:750;cursor:pointer
}
#appShell .opsApptQuickActions button:hover{background:#e3f3ee;border-color:#a8d8ca}
#appShell .opsApptQuickActions .opsApptCancel{border-color:#efd8d4;background:#fff8f6;color:#a0443a}
#appShell .opsApptQuickActions .opsApptCancel:hover{background:#fff0ed;border-color:#e7b9b2}
@media(max-width:740px){
 #appShell .opsApptQuickActions{gap:6px;margin-top:9px}
 #appShell .opsApptQuickActions button{flex:1 1 0;min-height:40px;padding:7px 8px;font-size:12px}
}


/* CRM, retention, and destructive-action fixes shared by every Optimiza business. */
#appShell .atlasRetentionOption{
 display:flex;align-items:flex-start;gap:12px;width:100%;min-width:0;
 line-height:1.45;overflow-wrap:anywhere
}
#appShell .atlasRetentionOption input{
 box-sizing:border-box;width:20px;min-width:20px;max-width:20px;height:20px;
 flex:0 0 20px;margin:2px 0 0;padding:0;accent-color:#118779
}
#appShell .atlasRetentionOption span{display:block;min-width:0;overflow-wrap:anywhere}
#appShell .atlasClientList{max-height:none!important;overflow:visible!important;overscroll-behavior:visible}
#appShell .opsClientPageTitle{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;min-width:0}
#appShell .opsClientHeaderActions,.afContactHeaderActions{
 display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;min-width:0
}
#appShell .opsClientHeaderActions #atlasContactImportMount,
#appShell .afContactHeaderActions #atlasContactImportMount{display:contents}
#appShell .opsClientHeaderActions .atlasImportBox,
#appShell .afContactHeaderActions .atlasImportBox{margin:0}
#appShell .opsBtn.warn{
 border:1px solid #b42332!important;background:#c62836!important;color:#fff!important;
 font-weight:800!important
}
#appShell .opsBtn.warn:hover{border-color:#941b28!important;background:#a91f2b!important}
#appShell .afLeadCard .afDeleteCustomer{
 color:#fff!important;border-color:#b42332!important;background:#c62836!important;font-weight:800!important
}
#appShell .afLeadCard .afDeleteCustomer:hover{background:#a91f2b!important}
#appShell .afContactHeaderActions #afNewCustomer{width:auto;min-height:42px;align-self:center}
@media(max-width:740px){
 #appShell .opsClientPageTitle{display:flex;flex-direction:column;align-items:stretch;gap:12px}
 #appShell .opsClientHeaderActions{justify-content:flex-start;width:100%}
 #appShell .opsClientHeaderActions>#opsNewClientToggle{flex:0 0 auto}
 #appShell .opsClientHeaderActions #atlasContactImportMount{display:block;min-width:0}
 #appShell .opsClientHeaderActions .atlasImportBox{width:auto}
 #appShell .opsClientHeaderActions .atlasImportBox .btn{width:auto}
 #appShell .atlasClientListRow{grid-template-columns:minmax(0,1fr);align-items:start;gap:10px}
 #appShell .atlasClientListActions{justify-content:flex-start}
 #appShell .atlasClientListActions .opsBtn{min-height:40px}
 #appShell .afContactHeaderActions{justify-content:flex-start}
 #appShell .afContactHeaderActions #atlasContactImportMount{display:block}
}


/* Softer destructive actions and compact follow-up dismissal, shared by every company. */
#appShell .opsBtn.warn,
#appShell .opsBtn.atlasDeleteAction{
 border:1px solid rgba(181,65,77,.22)!important;
 background:rgba(181,65,77,.08)!important;
 color:#a34650!important;
 font-weight:750!important
}
#appShell .opsBtn.warn:hover,
#appShell .opsBtn.atlasDeleteAction:hover{
 border-color:rgba(181,65,77,.34)!important;
 background:rgba(181,65,77,.14)!important;
 color:#963a44!important
}
#appShell .afLeadCard .afDeleteCustomer{
 border:1px solid rgba(181,65,77,.22)!important;
 background:rgba(181,65,77,.08)!important;
 color:#a34650!important;
 font-weight:750!important
}
#appShell .afLeadCard .afDeleteCustomer:hover{
 border-color:rgba(181,65,77,.34)!important;background:rgba(181,65,77,.14)!important;color:#963a44!important
}
#appShell .opsWidgets .opsDashboardRow>.opsActions .opsMessageActions{
 flex:0 1 auto!important;width:auto!important;min-width:0
}
#appShell .opsWidgets .opsDashboardRow>.opsActions [data-dismiss-followup]{
 display:inline-flex!important;align-items:center;justify-content:center;
 flex:0 0 36px!important;width:36px!important;min-width:36px!important;max-width:36px!important;
 height:36px!important;min-height:36px!important;padding:0!important;margin:0!important;
 border-radius:10px!important;font-size:19px!important;line-height:1!important
}
#appShell .optimizaServiceListItem>.optimizaServiceActions{
 display:flex;align-items:center;justify-content:flex-end;gap:8px;
 flex:0 0 auto!important;width:auto;min-width:0;margin-left:auto
}
#appShell .optimizaServiceActions .opsBtn{
 flex:0 0 auto;width:auto;min-width:104px;min-height:40px
}
@media(max-width:740px){
 #appShell .opsWidgets .opsDashboardRow>.opsActions{
  display:flex;align-items:center;flex-wrap:nowrap;gap:6px
 }
 #appShell .opsWidgets .opsDashboardRow>.opsActions .opsMessageActions{
  display:flex;align-items:center;flex:0 1 auto!important;width:auto!important;gap:5px
 }
 #appShell .opsWidgets .opsDashboardRow .opsMessageActions .opsBtn{min-height:42px}
 #appShell .opsWidgets .opsDashboardRow>.opsActions [data-dismiss-followup]{
  flex-basis:36px!important;width:36px!important;height:36px!important
 }
 #appShell .opsServiceDirectory .optimizaServiceListItem>.optimizaServiceActions{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;width:100%;margin:0
 }
 #appShell .opsServiceDirectory .optimizaServiceActions .opsBtn{
  width:100%;min-width:0;min-height:42px;justify-self:stretch
 }
}

#appShell .opsBtn.atlasDismissFollowup{
 border:1px solid rgba(181,65,77,.16)!important;
 background:rgba(181,65,77,.055)!important;
 color:#9a5961!important
}
#appShell .opsBtn.atlasDismissFollowup:hover{
 border-color:rgba(181,65,77,.28)!important;
 background:rgba(181,65,77,.11)!important;
 color:#873e47!important
}

/* Shared CRM refinements: accessible bulk selection, quiet delete actions and one-line controls. */
#appShell .atlasContactBulkBar,#appShell .afBulkToolbar{
 display:flex;align-items:center;justify-content:space-between;gap:10px;
 flex-wrap:wrap;padding:10px 12px;margin:12px 0 8px;border:1px solid #e1e9ee;
 border-radius:12px;background:#f9fbfc
}
#appShell .atlasContactBulkBar>label,#appShell .afBulkToolbar>label{
 display:inline-flex;align-items:center;gap:8px;margin:0;font-size:12px;font-weight:650
}
#appShell .atlasContactBulkBar input[type=checkbox],#appShell .afBulkToolbar input[type=checkbox],
#appShell .atlasClientListSelect input[type=checkbox],#appShell .afContactSelect input[type=checkbox]{
 width:18px;height:18px;min-height:18px;accent-color:#117f73;flex:0 0 auto
}
#appShell .atlasDeleteAction,#appShell .afDeleteCustomer{
 border:1px solid rgba(181,65,77,.19)!important;
 background:rgba(181,65,77,.075)!important;color:#9a4b55!important
}
#appShell .atlasDeleteAction:hover,#appShell .afDeleteCustomer:hover{
 border-color:rgba(181,65,77,.32)!important;
 background:rgba(181,65,77,.14)!important;color:#833c46!important
}
#appShell .atlasClientListRow{
 display:grid;grid-template-columns:22px minmax(0,1fr) minmax(360px,44%);
 align-items:center;gap:10px
}
#appShell .atlasClientListSelect{display:flex;align-self:start;margin:2px 0 0}
#appShell .atlasClientListIdentity{min-width:0}
#appShell .atlasClientListActions{
 display:flex!important;flex-flow:row nowrap!important;align-items:center;
 justify-content:stretch;gap:5px!important;width:100%;max-width:100%;min-width:0
}
#appShell .atlasClientListActions .opsMessageActions{display:contents!important}
#appShell .atlasClientListActions .opsBtn{
 flex:1 1 0;min-width:0!important;max-width:none;white-space:nowrap;
 padding:8px 7px!important;font-size:11px!important;min-height:40px
}
#appShell .opsWidgets .opsDashboardRow{
 display:flex!important;flex-flow:row nowrap!important;align-items:center!important;
 gap:8px!important;overflow:hidden
}
#appShell .opsWidgets .opsDashboardRow>div:first-child{flex:1 1 auto!important;min-width:0!important}
#appShell .opsWidgets .opsDashboardRow>.opsActions{
 display:flex!important;flex-flow:row nowrap!important;align-items:center!important;
 justify-content:flex-end!important;flex:0 0 auto!important;gap:5px!important;width:auto!important;
 white-space:nowrap
}
#appShell .opsWidgets .opsDashboardRow .opsMessageActions{display:contents!important}
#appShell .opsWidgets .opsDashboardRow .opsMessageActions .opsBtn{
 flex:0 0 auto;min-width:0!important;min-height:38px!important;
 padding:7px 9px!important;font-size:11px!important;white-space:nowrap
}
#appShell .opsWidgets .opsDashboardRow>.opsActions [data-dismiss-followup]{
 flex:0 0 34px!important;width:34px!important;min-width:34px!important;
 height:34px!important;min-height:34px!important;padding:0!important
}
#appShell .afContactCardActions{display:flex;flex-flow:row nowrap;gap:5px;overflow-x:auto}
#appShell .afContactCardActions>.opsBtn,#appShell .afContactCardActions>.btn{
 flex:0 0 auto;min-height:38px;padding:7px 9px;font-size:11px;white-space:nowrap
}
#appShell .afContactSelect{display:flex;align-items:center}
@media(max-width:1100px){
 #appShell .atlasClientListRow{grid-template-columns:22px minmax(0,1fr)}
 #appShell .atlasClientListActions{grid-column:1/-1}
}
@media(max-width:740px){
 #appShell .atlasClientListRow{display:grid!important;grid-template-columns:20px minmax(0,1fr);align-items:center!important;gap:9px}
 #appShell .atlasClientListActions{grid-column:1/-1;gap:4px!important}
 #appShell .atlasClientListActions .opsBtn{
  min-height:38px;padding:7px 3px!important;font-size:10px!important
 }
 #appShell .opsWidgets .opsDashboardRow{gap:6px!important}
 #appShell .opsWidgets .opsDashboardRow .opsMessageActions .opsBtn{
  min-height:38px!important;padding:6px 7px!important;font-size:10px!important
 }
 #appShell .opsWidgets .opsDashboardRow>.opsActions{gap:4px!important}
 #appShell .afBulkToolbar{align-items:flex-start}
 #appShell .afContactCardActions{flex-wrap:nowrap}
}
@media(max-width:350px){
 #appShell .atlasClientListActions .opsBtn{font-size:9px!important;padding-left:2px!important;padding-right:2px!important}
 #appShell .opsWidgets .opsDashboardRow .opsMessageActions .opsBtn{font-size:9px!important;padding-left:5px!important;padding-right:5px!important}
}
/* Horário semanal (atlas-schedule.js) */
.optSchedWrap{margin-bottom:18px}
.optSchedTop{display:flex;gap:14px;align-items:end;margin-bottom:16px}
.optSchedStaff{min-width:220px;max-width:320px}
.optSchedGrid{display:grid;gap:6px}
.optSchedRow{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:12px;align-items:center;padding:8px 10px;border:1px solid #e5edf1;border-radius:12px;background:#fff}
.optSchedRow.isOff{background:#f7f9fa}
.optSchedRow.isOff .optSchedText>span:first-child{color:#8796a3;font-style:italic}
.optSchedScaleRow{border:0;background:none;padding:0 10px;grid-template-columns:48px minmax(0,1fr) 58px}
.optSchedDayName{font-weight:800;font-size:13px;color:#243d4f}
.optSchedBody{display:grid;gap:6px;min-width:0}
.optSchedTrack{position:relative;height:12px;border-radius:999px;background:#eef3f5;overflow:hidden}
.optSchedTrack>span{position:absolute;top:0;bottom:0;border-radius:999px}
.optSchedWork{background:#38a798}
.optSchedBlock{background:repeating-linear-gradient(135deg,#c6633a 0 4px,#e0956f 4px 8px)}
.optSchedText{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;font-size:12px;color:#425265;min-width:0}
.optSchedBlockPill{display:inline-flex;align-items:center;gap:4px;padding:2px 4px 2px 8px;border-radius:999px;background:#fdeee6;color:#9a4a26;font-weight:650}
.optSchedBlockPill button{border:0;background:none;color:inherit;font-weight:800;padding:0 4px;line-height:1}
.optSchedEdit{border:1px solid #dae7e8;background:#f0f5f6;color:#12695f;border-radius:8px;padding:6px 10px;font-size:12px;font-weight:700}
.optSchedScale{display:flex;justify-content:space-between;font-size:10px;color:#8796a3}
.optSchedLegend{display:flex;flex-wrap:wrap;gap:14px;margin:10px 0 4px;font-size:11px;color:#708194}
.optSchedLegend i{display:inline-block;width:14px;height:8px;border-radius:999px;margin-right:6px;vertical-align:middle}
.optSchedLegend i.optSchedOffDot{background:#eef3f5;border:1px solid #d8e4e8}
.optSchedPanels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:20px}
.optSchedPanel{display:grid;gap:12px;align-content:start;padding:16px;border:1px solid #e5edf1;border-radius:14px;background:#fbfcfd}
.optSchedPanel h4{margin:0;font-size:11px;font-weight:800;letter-spacing:1px;text-transform:uppercase;color:#0c866e}
.optSchedPanel>.muted{margin:-4px 0 0;font-size:12px;line-height:1.45}
.optSchedPanel .field{margin:0}
.optSchedDays{display:grid;grid-template-columns:repeat(7,minmax(0,40px));gap:6px}
#appShell .optSchedDay,.optSchedDay{width:40px;height:40px;padding:0;border-radius:999px;border:1px solid #d8e4e8;background:#fff;color:#3b5566;font-weight:800;font-size:14px;box-shadow:none}
#appShell .optSchedDay.isActive,.optSchedDay.isActive{background:#117b70;border-color:#117b70;color:#fff}
.optSchedPresets{display:flex;flex-wrap:wrap;gap:6px}
#appShell .optSchedPresets .opsChip{min-height:28px;padding:4px 10px;font-size:11px}
.optSchedIntervals{display:grid;gap:8px}
.optSchedInterval{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) 34px;gap:8px;align-items:center;font-size:12px;color:#708194}
.optSchedInterval input{min-width:0}
#appShell .optSchedIcon,.optSchedIcon{width:34px;height:34px;padding:0;border:1px solid #e1e8ec;border-radius:9px;background:#fff;color:#a34e2a;font-size:18px;font-weight:700;box-shadow:none}
#appShell .optSchedAdd,.optSchedAdd{justify-self:start;border:0;background:none;color:#117b70;font-weight:750;font-size:13px;padding:2px 0;box-shadow:none}
.optSchedCopyList{display:grid;gap:8px}
.optSchedCheck{display:flex;align-items:center;gap:8px;font-size:13px;color:#243d4f}
.optSchedCheck input{width:18px;height:18px;accent-color:#117b70}
@media(max-width:900px){.optSchedPanels{grid-template-columns:1fr}}
@media(max-width:560px){.optSchedTop{display:block}.optSchedStaff{max-width:none}.optSchedRow{grid-template-columns:34px minmax(0,1fr) auto;gap:8px;padding:8px}.optSchedEdit{padding:5px 8px;font-size:11px}.optSchedScaleRow{grid-template-columns:34px minmax(0,1fr) 44px}#appShell .optSchedDay,.optSchedDay{width:100%;height:auto;aspect-ratio:1;font-size:13px}.optSchedDays{grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}.optSchedInterval{gap:6px}.optSchedInterval input{padding:10px 8px}.optSchedPanel{padding:14px}}
.optSchedFirst{display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin:14px 0 18px}
.optSchedFirst .field{flex:1 1 240px;margin:0}
.optSchedPreview{display:grid;gap:6px;opacity:.55}
/* Vista de calendário semanal */
.optCal{--optCalRow:44px;border:1px solid #e2e9ee;border-radius:14px;overflow:hidden;background:#fff}
.optCalHeadRow{display:grid;grid-template-columns:52px repeat(7,minmax(0,1fr));border-bottom:1px solid #e2e9ee;background:#fbfcfd}
.optCalCorner{border-right:1px solid #eef3f5}
#appShell .optCalHead,.optCalHead{display:grid;gap:2px;justify-items:center;padding:10px 4px;border:0;border-right:1px solid #eef3f5;border-radius:0;background:none;box-shadow:none;color:#243d4f;cursor:pointer;min-width:0}
.optCalHead:last-child{border-right:0}
.optCalHead:hover:not(:disabled){background:#eef7f5}
.optCalHead strong{font-size:13px}
.optCalHead small{font-size:11px;color:#0c866e;font-weight:700}
.optCalHead.isOff small{color:#8796a3;font-weight:600}
.optCalShort{display:none}
.optCalBody{display:grid;grid-template-columns:52px minmax(0,1fr);height:calc(var(--optCalHours) * var(--optCalRow))}
.optCalAxis{position:relative;border-right:1px solid #eef3f5}
.optCalAxis span{position:absolute;right:8px;transform:translateY(-50%);font-size:10px;color:#8796a3;font-variant-numeric:tabular-nums}
.optCalAxis span:first-child{transform:none;top:2px!important}
.optCalCols{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));background-image:linear-gradient(#eef3f5 1px,transparent 1px);background-size:100% var(--optCalRow)}
.optCalCol{position:relative;border-right:1px solid #eef3f5;min-width:0}
.optCalCol:last-child{border-right:0}
.optCalCol.isOff{background:repeating-linear-gradient(135deg,#f6f8f9 0 8px,#eef2f4 8px 16px)}
.optCalOffLabel{position:absolute;top:50%;left:0;right:0;text-align:center;font-size:12px;font-weight:700;color:#8796a3;transform:translateY(-50%)}
.optCalWork{position:absolute;left:4px;right:4px;border-radius:8px;background:#e1f4f0;border-left:3px solid #38a798;padding:4px 6px;overflow:hidden}
.optCalWork span{font-size:11px;font-weight:700;color:#137665;font-variant-numeric:tabular-nums}.optCalWork b{font-weight:inherit}.optCalWork b+b::before{content:'–'}
.optCalBlock{position:absolute;left:8px;right:4px;border-radius:7px;background:repeating-linear-gradient(135deg,#fbe3d6 0 6px,#f7d2bf 6px 12px);border-left:3px solid #c6633a;padding:3px 4px 3px 6px;display:flex;align-items:flex-start;justify-content:space-between;gap:2px;overflow:hidden;z-index:1}
.optCalBlock span{font-size:11px;font-weight:700;color:#8d3f1d;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#appShell .optCalBlock button,.optCalBlock button{border:0;background:none;color:#8d3f1d;font-weight:800;padding:0 2px;line-height:1;box-shadow:none;min-height:0}
.optCalHint{margin-left:auto;font-style:italic}
@media(max-width:700px){.optCal{--optCalRow:36px}.optCalLong{display:none}.optCalShort{display:inline}.optCalHeadRow,.optCalBody{grid-template-columns:38px minmax(0,1fr)}.optCalHeadRow{grid-template-columns:38px repeat(7,minmax(0,1fr))}.optCalAxis span{right:4px;font-size:9px}.optCalWork{left:2px;right:2px;padding:3px}.optCalWork span{font-size:9.5px;line-height:1.25}.optCalWork b{display:block}.optCalWork b+b::before{content:none}.optCalBlock span{display:none}.optCalBlock{justify-content:center}.optCalBlock{left:3px;right:2px;padding:2px}.optCalBlock span{font-size:9px}.optCalHead small{font-size:9px}.optCalHint{display:none}.optCalOffLabel{font-size:10px;writing-mode:vertical-rl;transform:translate(0,-50%);left:50%;right:auto;margin-left:-6px}}
/* Separadores do editor e lista do telemóvel */
.optSchedTabs{display:flex;gap:4px;margin:22px 0 0;padding:4px;border-radius:12px;background:#eef3f5;width:max-content;max-width:100%}
#appShell .optSchedTab,.optSchedTab{flex:1 1 auto;border:0;border-radius:9px;background:none;box-shadow:none;padding:8px 16px;font-size:13px;font-weight:750;color:#4b6274;white-space:nowrap}
#appShell .optSchedTab.isActive,.optSchedTab.isActive{background:#fff;color:#137665;box-shadow:0 1px 3px #112d401a}
.optSchedPanels{grid-template-columns:minmax(0,1fr)!important;margin-top:12px!important;max-width:620px}
.optSchedPanels .optSchedPanel{display:none}
.optSchedPanels[data-active-tab="hours"] [data-tab-panel="hours"],.optSchedPanels[data-active-tab="off"] [data-tab-panel="off"],.optSchedPanels[data-active-tab="block"] [data-tab-panel="block"],.optSchedPanels[data-active-tab="copy"] [data-tab-panel="copy"]{display:grid}
.optSchedPanel>h4{display:none}
.optSchedList{display:none}
@media(max-width:700px){
 .optCal,.optSchedLegend{display:none}
 .optSchedList{display:grid;gap:6px}
 .optSchedListRow{border:1px solid #e5edf1;border-radius:12px;background:#fff;overflow:hidden}
 .optSchedListRow.isOff{background:#f7f9fa}
 #appShell .optSchedListMain,.optSchedListMain{display:grid;grid-template-columns:38px minmax(0,1fr) auto 14px;gap:8px;align-items:center;width:100%;padding:12px;border:0;border-radius:0;background:none;box-shadow:none;text-align:left;color:#243d4f}
 .optSchedListMain strong{font-size:13px}
 .optSchedListMain span{font-size:13px;font-weight:600;font-variant-numeric:tabular-nums}
 .optSchedListRow.isOff .optSchedListMain span{color:#8796a3;font-style:italic;font-weight:500}
 .optSchedListMain small{font-size:11px;font-weight:700;color:#0c866e}
 .optSchedListMain i{font-style:normal;font-size:18px;color:#9fb0bc}
 .optSchedListBlocks{display:flex;flex-wrap:wrap;gap:6px;padding:0 12px 10px 58px;font-size:11px}
 .optSchedTabs{width:100%}
 #appShell .optSchedTab,.optSchedTab{padding:8px 6px;font-size:12px}
}


/* Dashboard follow-ups: keep the client text readable above compact actions on phones. */
@media(max-width:740px){
 #appShell .opsWidgets .opsDashboardRow{
  display:grid!important;grid-template-columns:minmax(0,1fr)!important;
  align-items:start!important;gap:8px!important;overflow:visible!important
 }
 #appShell .opsWidgets .opsDashboardRow>div:first-child{
  width:100%!important;min-width:0!important;flex:none!important
 }
 #appShell .opsWidgets .opsDashboardRow>.opsActions{
  display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 36px!important;
  align-items:center!important;justify-content:stretch!important;flex:none!important;
  width:100%!important;max-width:100%!important;min-width:0!important;gap:6px!important;
  white-space:normal!important
 }
 #appShell .opsWidgets .opsDashboardRow>.opsActions .opsMessageActions{display:contents!important}
 #appShell .opsWidgets .opsDashboardRow>.opsActions .opsBtn:not([data-dismiss-followup]){
  width:100%!important;min-width:0!important;max-width:none!important;
  min-height:40px!important;padding:7px 5px!important;font-size:10px!important;
  white-space:nowrap!important
 }
 #appShell .opsWidgets .opsDashboardRow>.opsActions [data-dismiss-followup]{
  grid-column:3!important;grid-row:1!important;
  flex:none!important;width:36px!important;min-width:36px!important;max-width:36px!important;
  height:36px!important;min-height:36px!important;padding:0!important
 }
}/* iOS: os campos de hora ignoram a largura e saem do cartão */
.optSchedPanel input[type=time]{-webkit-appearance:none;appearance:none;display:block;width:100%;min-width:0;max-width:100%;box-sizing:border-box;text-align:left;min-height:44px;background:#fff}
.optSchedPanel input[type=time]::-webkit-date-and-time-value{text-align:left}
.optSchedPanel .opsFormPair .field,.optSchedInterval>input{min-width:0}
@media(max-width:700px){
 #appShell .optSchedListMain,.optSchedListMain{padding:9px 12px}
 .optSchedList{gap:4px}
 .optSchedInterval{grid-template-columns:minmax(0,1fr) 22px minmax(0,1fr) 36px;gap:6px}
 .optSchedInterval span{text-align:center}
 .optSchedPanel input[type=time]{font-size:16px;padding:10px}
}
/* Subscription opened from a client record */
.acSubBack{margin:0 0 12px}
.acSubRow.isFocused{margin:0 -14px;padding:18px 14px;border-radius:14px;background:#eef8f5;box-shadow:inset 0 0 0 2px #23786d}
/* Renewal / payment form opened inside the client's own subscription row */
.acSubInlineForm{margin-top:12px;padding:14px;border-radius:12px;background:#fff;border:1px solid #cfe3dd}
.acSubInlineForm h4{margin:0 0 10px;font-size:15px}
.acSubInlineForm .opsForm{margin:0}
/* Aviso de folga ou bloqueio ao marcar (não impede a marcação) */
.opsApptScheduleWarning{grid-column:1/-1;margin:2px 0 4px;padding:10px 12px;border-radius:10px;background:#fff7e6;border:1px solid #f0c36d;color:#7a4b00;font-size:14px}
.opsApptScheduleWarning ul{margin:4px 0;padding-left:18px}
.opsApptScheduleWarning small{color:#8a6420}
/* Nova viatura criada a partir da marcação */
.opsApptNewVehicle{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:10px 12px;border-radius:10px;background:#eef8f5;border:1px solid #cfe3dd}
.opsApptNewVehicle[hidden]{display:none}
@media(max-width:700px){.opsApptNewVehicle{grid-template-columns:1fr}}

/* Agenda no telemóvel: as marcações primeiro (revisão de usabilidade, 2026-11-21).
   Filtros recolhidos, "+ Nova marcação" fixo no canto e sem a frase de apresentação. */
.opsAgendaFiltersToggle{display:none}
.opsGoogleAgendaNotice.muted{font-size:13px;margin:8px 0}
@media(max-width:740px){
 #appShell .opsAgendaPageTitle p.muted{display:none}
 #appShell .opsAgendaFilters:not(.isOpen){display:none}
 #appShell .opsAgendaFiltersToggle{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:8px 14px;border:1px solid #d9e5e9;border-radius:999px;background:#fff;color:#14303a;font-family:inherit;font-size:13px;font-weight:650;line-height:1;white-space:nowrap;cursor:pointer}
 #appShell .opsAgendaFiltersToggle.hasFilter{border-color:#157565;color:#157565}
 #appShell .opsAgendaTopRow{display:flex;align-items:center;gap:8px}
 #appShell .opsAgendaTopRow .opsAgendaViewTabs{flex:1;min-width:0}
 #appShell .opsNewBooking:not(.isOpen){position:fixed;right:max(16px,env(safe-area-inset-right,0px));bottom:calc(84px + env(safe-area-inset-bottom,0px));z-index:90;width:auto;min-height:52px;padding:0 20px;border-radius:999px;font-size:15px;box-shadow:0 8px 20px rgba(15,39,56,.28)}
 #appShell .opsCalendar{padding-bottom:72px}
}

/* Nova marcação: cliente novo no próprio formulário e horas livres em botões. */
.opsApptNewClient{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:10px 12px;border-radius:10px;background:#eef8f5;border:1px solid #cfe3dd}
.opsApptNewClient[hidden]{display:none}
.opsApptNewClient p{grid-column:1/-1;margin:0;font-size:12px}
.opsApptSlots{grid-column:1/-1;display:grid;gap:8px}
.opsApptSlotsLabel{font-size:13px;font-weight:650;color:#14303a}
.opsApptSlotList{display:flex;flex-wrap:wrap;gap:6px}
.opsApptSlotList button{min-height:38px;padding:6px 12px;border:1px solid #cfe0e4;border-radius:999px;background:#fff;color:#14303a;font-family:inherit;font-size:13px;font-weight:650;line-height:1;font-variant-numeric:tabular-nums;cursor:pointer}
.opsApptSlotList button:hover{border-color:#157565}
.opsApptSlotList button[aria-pressed="true"]{background:#157565;border-color:#157565;color:#fff}
@media(max-width:700px){.opsApptNewClient{grid-template-columns:1fr}}

/* Semana no computador: grelha compacta + painel lateral com a marcação escolhida. */
.opsWeekLayout{display:block}
.opsWeekPanel{display:none}
@media(min-width:741px){
 #appShell .opsWeekLayout{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,300px);gap:14px;align-items:start}
 #appShell .opsWeekPanel{display:block;position:sticky;top:12px;min-width:0}
 #appShell .opsWeekPanel .opsAppointment{margin:0}
 #appShell .opsWeekPanel .opsAppointmentBody{display:grid}
 #appShell .opsWeekPanelEmpty{margin:0;padding:18px;border:1px dashed #cfe0e4;border-radius:12px;font-size:13px}
 #appShell .opsCalendar.week .opsAppointmentBody,
 #appShell .opsCalendar.week .opsApptQuickActions{display:none!important}
 #appShell .opsCalendar.week .opsAppointmentHead{gap:2px}
 #appShell .opsCalendar.week .opsAppointmentHead strong,
 #appShell .opsCalendar.week .opsAppointmentHead .muted{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;word-break:normal;overflow-wrap:normal;min-width:0}
 #appShell .opsCalendar.week .opsAppointmentChevron{display:none}
 #appShell .opsCalendar.week .opsAppointment.isOpen{outline:2px solid #157565;outline-offset:1px}
}
@media(min-width:741px) and (max-width:1100px){
 #appShell .opsWeekLayout{grid-template-columns:1fr}
 #appShell .opsWeekPanel{position:static;order:-1}
}
@media(min-width:741px) and (max-width:1100px){#appShell .opsWeekPanelEmpty{display:none}}

/* Marcação aberta: um botão principal, a mensagem atrás de um botão que diz qual é, e "Mais". */
.opsApptMessage,.opsApptMore{border:1px solid #d9e5e9;border-radius:10px;background:#fff;margin-top:8px}
.opsApptMessage>summary,.opsApptMore>summary{list-style:none;cursor:pointer;padding:10px 12px;font-weight:650;font-size:13px;color:#157565;display:flex;justify-content:space-between;align-items:center}
.opsApptMessage>summary::-webkit-details-marker,.opsApptMore>summary::-webkit-details-marker{display:none}
.opsApptMessage>summary::after,.opsApptMore>summary::after{content:'▾';font-size:12px}
.opsApptMessage[open]>summary::after,.opsApptMore[open]>summary::after{content:'▴'}
.opsApptMessage .opsApptShare{padding:0 12px 12px;margin:0}
.opsApptMore>summary{color:#14303a}
.opsApptMoreList{display:grid;border-top:1px solid #d9e5e9}
.opsApptMoreItem{border:0;border-top:1px solid #eef3f4;background:none;text-align:left;padding:11px 12px;font:inherit;font-size:14px;color:#14303a;cursor:pointer}
.opsApptMoreItem:first-child{border-top:0}
.opsApptMoreItem:hover{background:#f4f8f8}
.opsApptMoreItem.isDanger{color:#b3261e}
/* AF Consulting: simple contacts and clients list, businesses per client */
.afSoon{background:#fff8ec;border:1px solid #f2d39b;border-radius:16px;padding:14px 16px;margin:0 0 16px}
.afSoon h2{font-size:16px;margin:0 0 8px}
.afSoon ul,.afSoonList{list-style:none;margin:0;padding:0;display:grid;gap:4px}
.afSoonList li{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between;padding:6px 0;border-bottom:1px solid #eef2f4}
.afSoonItem{all:unset;box-sizing:border-box;width:100%;display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between;padding:7px 8px;border-radius:9px;cursor:pointer;font-size:14px}
.afSoonItem:hover,.afSoonItem:focus-visible{background:#fff1d6;outline:none}
.afViewBar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:0 0 12px}
.afTabs{display:flex;flex-wrap:wrap;gap:6px}
.afTab{border:1px solid #d5dde3;background:#fff;color:#243d4f;border-radius:999px;padding:7px 14px;font-weight:600;font-size:14px;cursor:pointer}
.afTab.on{background:#111c2a;border-color:#111c2a;color:#fff}
.afViewBar .field{margin:0}
.afSearch{flex:1;min-width:180px}
.afSimpleTable{width:100%;border-collapse:collapse;background:#fff;border:1px solid #e2e8eb;border-radius:14px;overflow:hidden;font-size:14px}
.afSimpleTable th{text-align:left;font-size:12px;color:#5c6c78;font-weight:600;padding:10px 12px;border-bottom:1px solid #e2e8eb;background:#f8fafb}
.afSimpleTable td{padding:11px 12px;border-bottom:1px solid #eef2f4;vertical-align:middle;overflow-wrap:anywhere}
.afSimpleTable td .muted{display:block;font-size:12px}
.afSimpleTable tr:last-child td{border-bottom:none}
.afRowLink{cursor:pointer}
.afRowLink:hover td,.afRowLink:focus-visible td{background:#f4f8fa}
.afRowLink:focus-visible{outline:2px solid #2f6fd6;outline-offset:-2px}
.afSelectCol{width:34px}
.afDateTag{font-variant-numeric:tabular-nums}
.afBizCard{border:1px solid #e2e8eb;border-left:5px solid #1f8a5b;border-radius:12px;padding:12px 14px;margin-bottom:10px;background:#fff}
.afBizInactive{border-left-color:#b9c3cb;opacity:.8}
.afBizHead{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:8px}
.afBizHead strong{font-size:15px;margin-right:auto}
.afBizHead .opsActions{margin:0}
.afBizGrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;font-size:14px;overflow-wrap:anywhere}
.afBizLabel{display:block;font-size:12px;color:#5c6c78;font-weight:600;margin-bottom:2px}
.afFormMore{margin:4px 0 8px}
.afFormMore>summary{cursor:pointer;color:#5c6c78;font-weight:600;padding:6px 0}
@media (max-width:740px){
 .afSimpleTable,.afSimpleTable tbody,.afSimpleTable tr,.afSimpleTable td{display:block;width:100%}
 .afSimpleTable thead{display:none}
 .afSimpleTable{border:none;background:transparent}
 .afSimpleTable tr{background:#fff;border:1px solid #e2e8eb;border-radius:13px;margin-bottom:10px;padding:8px 4px;position:relative}
 .afSimpleTable td{border:none;padding:4px 10px;display:flex;gap:10px;justify-content:space-between;align-items:center}
 .afSimpleTable td[data-label]::before{content:attr(data-label);font-size:12px;color:#5c6c78;font-weight:600;flex:0 0 auto}
 .afSimpleTable td:first-of-type[data-label]::before,.afSimpleTable td[data-label="Nome"]::before{content:none}
 .afSimpleTable td[data-label="Negócio"],.afSimpleTable td[data-label="Nome"]{display:block;padding-right:40px}
 .afSimpleTable td.afSelectCol{position:absolute;right:6px;top:8px;width:auto;padding:4px}
 .afBizGrid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
.afViewBar .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.afBizOptimiza{margin-top:10px;background:#f6f7f9;border:1px solid #e3e7ec;border-radius:10px;padding:8px 10px;display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between;font-size:14px}
.afBizOptimiza.on{background:#eef5ff;border-color:#cfe0fb}
.afBizOptimiza .opsActions{margin:0}
.afBizOptimiza .field{flex:1;min-width:200px;margin:0}
.afBizOptimiza .afFormColumns{flex:1 1 100%}
.afCompanyOwners{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0 0 10px}
