
/* 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}
.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}}
