/* Aparência clara opcional, exclusiva do mobile da atendente. */
html[data-attendant-appearance="light"] body.attendantMobileMode{
  color-scheme:light;
  --bg:#eef3f8;
  --panel:#ffffff;
  --panel-soft:rgba(255,255,255,.82);
  --text:#111827;
  --muted:#526071;
  --select-border:rgba(37,99,235,.24);
  --select-border-active:rgba(37,99,235,.56);
  --select-focus:rgba(37,99,235,.10);
  --select-panel-1:#ffffff;
  --select-panel-2:#f3f6fa;
  --select-glow:rgba(37,99,235,.10);
  --scrollbar-track:rgba(15,23,42,.06);
  --scrollbar-thumb:rgba(71,85,105,.34);
  --scrollbar-thumb-hover:rgba(51,65,85,.54);
}

html[data-attendant-appearance="light"] body.attendantMobileMode{
  color:#111827 !important;
  background:#eef3f8 !important;
}

html[data-attendant-appearance="light"] body.attendantMobileMode :is(
  .appShell,
  .appShell.operationalTheme,
  .appShell.analysisTheme,
  .appShell.machinesTheme,
  .appShell.registryTheme,
  .attendantMobile,
  .loginScreen,
  .unitSelectionScreen,
  .systemLockScreen,
  .panicLockOverlay
){
  color:#111827 !important;
  background:
    radial-gradient(circle at 12% 4%, rgba(59,130,246,.09), transparent 28%),
    radial-gradient(circle at 92% 12%, rgba(16,185,129,.07), transparent 25%),
    linear-gradient(145deg, #f8fafc 0%, #eef3f8 48%, #e8eef5 100%) !important;
}

html[data-attendant-appearance="light"] body.attendantMobileMode :is(
  .appShell .workspace,
  .appShell.operationalTheme .workspace,
  .appShell.analysisTheme .workspace,
  .appShell.machinesTheme .workspace,
  .appShell.registryTheme .workspace
){
  background:transparent !important;
}

html[data-attendant-appearance="light"] body.attendantMobileMode :is(
  .appShell .sidebar,
  .appShell.operationalTheme .sidebar,
  .appShell.analysisTheme .sidebar,
  .appShell.machinesTheme .sidebar,
  .appShell.registryTheme .sidebar
){
  border-color:rgba(71,85,105,.16) !important;
  color:#111827 !important;
  background:rgba(255,255,255,.88) !important;
  box-shadow:14px 0 36px rgba(15,23,42,.08) !important;
}

html[data-attendant-appearance="light"] body.attendantMobileMode :is(.appShell, .attendantMobile, .loginScreen, .unitSelectionScreen, .systemLockScreen, .panicLockOverlay)
  :is(
    [class$="Card"],
    [class*="Card "],
    [class$="Panel"],
    [class*="Panel "],
    [class$="Tile"],
    [class*="Tile "],
    [class$="Banner"],
    [class*="Banner "],
    [class$="Summary"],
    [class*="Summary "],
    [class$="List"],
    [class*="List "],
    [class$="Row"],
    [class*="Row "],
    .reportsBoard,
    .registryBoard,
    .adminBoard,
    .helpBoard,
    .statementBoard,
    .cashBoard > section,
    .calendarPopover,
    .appSelectOptions,
    .avatarDropdown,
    .mobileAvatarDropdown,
    .modalCard,
    .systemDialog
  ){
  border-color:rgba(71,85,105,.18) !important;
  color:#111827 !important;
  background:rgba(255,255,255,.90) !important;
  box-shadow:
    0 16px 38px rgba(15,23,42,.09),
    inset 0 1px 0 rgba(255,255,255,.92) !important;
}

html[data-attendant-appearance="light"] body.attendantMobileMode :is(.appShell, .attendantMobile, .loginScreen, .unitSelectionScreen, .systemLockScreen, .panicLockOverlay)
  :is(h1, h2, h3, h4, h5, h6, p, span, strong, b, small, label, legend, th, td, li, dt, dd){
  color:#111827 !important;
  text-shadow:none !important;
}

html[data-attendant-appearance="light"] body.attendantMobileMode :is(.appShell, .attendantMobile, .loginScreen, .unitSelectionScreen, .systemLockScreen, .panicLockOverlay)
  :is(input, textarea, select, .appSelectButton){
  border-color:rgba(71,85,105,.24) !important;
  color:#111827 !important;
  -webkit-text-fill-color:#111827 !important;
  background:#ffffff !important;
  box-shadow:inset 0 1px 2px rgba(15,23,42,.04) !important;
}

html[data-attendant-appearance="light"] body.attendantMobileMode :is(.appShell, .attendantMobile, .loginScreen, .unitSelectionScreen, .systemLockScreen, .panicLockOverlay)
  :is(input, textarea)::placeholder{
  color:#64748b !important;
  -webkit-text-fill-color:#64748b !important;
  opacity:1;
}

html[data-attendant-appearance="light"] body.attendantMobileMode :is(
  .dateSelector,
  .appRefreshButton,
  .mobileRefreshButton,
  .mobileMenuButton,
  .secondaryAction,
  .navItem,
  .sidebarUnitsAction,
  .sidebarCollapseAction,
  .avatarDropdown button,
  .mobileAvatarDropdown button
){
  border-color:rgba(71,85,105,.18) !important;
  color:#111827 !important;
  background:rgba(255,255,255,.84) !important;
  box-shadow:0 8px 20px rgba(15,23,42,.07) !important;
}

html[data-attendant-appearance="light"] body.attendantMobileMode :is(.navItem.active, .navItem:hover, .avatarDropdown button:hover, .mobileAvatarDropdown button:hover){
  border-color:rgba(37,99,235,.28) !important;
  color:#0f172a !important;
  background:#e8f1ff !important;
}

html[data-attendant-appearance="light"] body.attendantMobileMode .appShell :is(.navItem.active, .navItem:hover) :is(span, strong, svg),
html[data-attendant-appearance="light"] body.attendantMobileMode .appShell :is(.navItem.active, .navItem:hover){
  color:#111827 !important;
}

html[data-attendant-appearance="light"] body.attendantMobileMode :is(.appShell, .attendantMobile, .loginScreen, .unitSelectionScreen)
  label:has(> input, > select, > textarea, .appSelect){
  border-color:rgba(71,85,105,.18) !important;
  color:#111827 !important;
  background:rgba(255,255,255,.92) !important;
}

html[data-attendant-appearance="light"] body.attendantMobileMode :is(.adminUnitCard, .unitCard){
  border-color:rgba(71,85,105,.22) !important;
  color:#111827 !important;
  background:#ffffff !important;
}

html[data-attendant-appearance="light"] body.attendantMobileMode :is(.avatarButton, .attendantMobile .mobileAvatarButton){
  border-color:rgba(71,85,105,.22) !important;
  color:#111827 !important;
  background:linear-gradient(180deg, #ffffff, #e9eef5) !important;
  box-shadow:0 10px 24px rgba(15,23,42,.12) !important;
}

html[data-attendant-appearance="light"] body.attendantMobileMode :is(.avatarButton, .attendantMobile .mobileAvatarButton) .avatarUserIcon{
  color:#111827 !important;
  text-shadow:none !important;
}

html[data-attendant-appearance="light"] body.attendantMobileMode :is(.eyebrow, .loginEyebrow, .topbarEyebrow, [class*="Warning"] > strong){
  color:#9a6700 !important;
}

html[data-attendant-appearance="light"] body.attendantMobileMode :is(.error, [class*="Error"], [class*="Danger"], .logout){
  color:#b42318 !important;
}

html[data-attendant-appearance="light"] body.attendantMobileMode :is(.success, [class*="Success"]){
  color:#067647 !important;
}

html[data-attendant-appearance="light"] body.attendantMobileMode :is(.modalOverlay, .systemDialogBackdrop, .mobileSelectOverlay){
  background:rgba(15,23,42,.32) !important;
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}

html[data-attendant-appearance="light"] body.attendantMobileMode .attendantMobile::after{
  background:radial-gradient(circle at 50% 50%, transparent 0 54%, rgba(148,163,184,.12) 100%) !important;
}

html[data-attendant-appearance="light"] body.attendantMobileMode .attendantMobile::before{
  opacity:.28 !important;
}

/* Tema claro completo: superfícies mobile da atendente. */
html[data-attendant-appearance="light"] body.attendantMobileMode .attendantMobile :is(
  .attendantMobileHeader,
  .mobileHomeCard,
  .mobileBalanceCard,
  .mobileActionCard,
  .mobileStatementCard,
  .mobilePlaceholder
){
  border-color:rgba(71,85,105,.18) !important;
  color:#111827 !important;
  background:#ffffff !important;
  box-shadow:0 18px 44px rgba(15,23,42,.09), inset 0 1px 0 rgba(255,255,255,.96) !important;
}

html[data-attendant-appearance="light"] body.attendantMobileMode .attendantMobile :is(
  .attendantMobileHeader,
  .mobileHomeCard,
  .mobileBalanceCard,
  .mobileActionCard,
  .mobileStatementCard,
  .mobilePlaceholder
)::before{
  opacity:.58 !important;
}

html[data-attendant-appearance="light"] body.attendantMobileMode .attendantMobile .mobileHomeIcon{
  color:#062035 !important;
  background:linear-gradient(135deg, #67e8f9, #38bdf8) !important;
}

html[data-attendant-appearance="light"] body.attendantMobileMode .attendantMobile.mobilePanelActive
  :is(#mobilePaymentPanel, #mobileReadingPanel, #mobileClientsPanel, #mobileStatementPanel){
  color:#111827 !important;
  background:#ffffff !important;
}

html[data-attendant-appearance="light"] body.attendantMobileMode .attendantMobile.mobilePanelActive
  :is(#mobilePaymentPanel, #mobileReadingPanel, #mobileClientsPanel)
  :is(.mobilePaymentForm, .mobileClientCheckinPanel) > label{
  border:0 !important;
  color:#111827 !important;
  background:transparent !important;
  box-shadow:none !important;
}

html[data-attendant-appearance="light"] body.attendantMobileMode .attendantMobile.mobilePanelActive
  :is(#mobilePaymentPanel, #mobileReadingPanel, #mobileClientsPanel)
  :is(.mobilePaymentForm, .mobileClientCheckinPanel) > label > span{
  color:#172033 !important;
  text-shadow:none !important;
}

html[data-attendant-appearance="light"] body.attendantMobileMode .attendantMobile.mobilePanelActive #mobilePaymentPanel :is(
  #mobilePaymentClientSearch,
  #mobilePaymentValidationCode,
  #mobilePaymentValue,
  #mobilePaymentOutput,
  .mobilePaymentMachineControl
),
html[data-attendant-appearance="light"] body.attendantMobileMode .attendantMobile.mobilePanelActive #mobileReadingPanel :is(
  #mobileReadingMachineNumber,
  #mobileReadingEntry,
  #mobileReadingOutput,
  #mobileReadingReason,
  .mobileReadingMachineControl
),
html[data-attendant-appearance="light"] body.attendantMobileMode .attendantMobile.mobilePanelActive #mobileClientsPanel :is(
  #mobileClientCheckinSearch,
  #mobileClientName,
  #mobileClientContact
){
  border-color:#cbd5e1 !important;
  color:#111827 !important;
  -webkit-text-fill-color:#111827 !important;
  background:#f8fafc !important;
  box-shadow:inset 0 1px 2px rgba(15,23,42,.05), 0 0 0 1px rgba(255,255,255,.84) !important;
}

html[data-attendant-appearance="light"] body.attendantMobileMode .attendantMobile.mobilePanelActive #mobilePaymentPanel
  .mobilePaymentMachineControl #mobilePaymentMachineNumber,
html[data-attendant-appearance="light"] body.attendantMobileMode .attendantMobile.mobilePanelActive #mobileReadingPanel
  .mobileReadingMachineControl #mobileReadingMachineNumber{
  color:#111827 !important;
  -webkit-text-fill-color:#111827 !important;
  background:transparent !important;
  box-shadow:none !important;
}

html[data-attendant-appearance="light"] body.attendantMobileMode .attendantMobile.mobilePanelActive
  :is(#mobilePaymentPanel, #mobileReadingPanel, #mobileClientsPanel)
  :is(input, textarea)::placeholder{
  color:#64748b !important;
  -webkit-text-fill-color:#64748b !important;
  opacity:1 !important;
}

html[data-attendant-appearance="light"] body.attendantMobileMode .attendantMobile.mobilePanelActive #mobilePaymentPanel
  .mobilePaymentMachineControl .mobilePaymentMachinePickerTrigger,
html[data-attendant-appearance="light"] body.attendantMobileMode .attendantMobile.mobilePanelActive #mobileReadingPanel
  .mobileReadingMachineControl .mobileReadingMachinePickerTrigger{
  border-left-color:#cbd5e1 !important;
  color:#0369a1 !important;
  background:#eef6ff !important;
  box-shadow:none !important;
}

html[data-attendant-appearance="light"] body.attendantMobileMode .attendantMobile.mobilePanelActive #mobilePaymentPanel
  .mobilePaymentMachineControl .mobilePaymentMachinePickerTrigger::after,
html[data-attendant-appearance="light"] body.attendantMobileMode .attendantMobile.mobilePanelActive #mobileReadingPanel
  .mobileReadingMachineControl .mobileReadingMachinePickerTrigger::after{
  color:#0369a1 !important;
}

html[data-attendant-appearance="light"] body.attendantMobileMode .attendantMobile.mobilePanelActive #mobilePaymentPanel .mobilePaymentMachineMatch{
  color:#111827 !important;
}

html[data-attendant-appearance="light"] body.attendantMobileMode .attendantMobile.mobilePanelActive #mobilePaymentPanel .mobilePaymentMachineMatch.invalid{
  color:#b42318 !important;
}

html[data-attendant-appearance="light"] body.attendantMobileMode .attendantMobile :is(
  .mobilePaymentClientResults,
  .mobileSelectPickerOptions,
  .mobileClientSearchResults,
  .mobileClientRecentList
){
  border-color:rgba(71,85,105,.18) !important;
  color:#111827 !important;
  background:#ffffff !important;
  box-shadow:0 18px 42px rgba(15,23,42,.14) !important;
}

html[data-attendant-appearance="light"] body.attendantMobileMode .attendantMobile :is(
  .mobilePaymentClientResult,
  .mobileSelectPickerOption,
  .mobileClientSearchResult,
  .mobileClientRecentRow,
  .mobileClientRecentToggle,
  .mobileStatementRow,
  .mobileBalanceSummary
){
  border-color:rgba(71,85,105,.15) !important;
  color:#111827 !important;
  background:#f8fafc !important;
  box-shadow:none !important;
}

html[data-attendant-appearance="light"] body.attendantMobileMode .attendantMobile :is(
  .mobilePaymentClientResult:hover,
  .mobileSelectPickerOption:hover,
  .mobileSelectPickerOption.selected,
  .mobileSelectPickerOption.active,
  .mobileClientSearchResult:hover
){
  color:#0f172a !important;
  background:#e8f1ff !important;
}

html[data-attendant-appearance="light"] body.attendantMobileMode .attendantMobile :is(
  .mobilePaymentClientResult,
  .mobileClientSearchResult,
  .mobileClientRecentInfo,
  .mobileClientEmpty,
  .mobileClientRecentToggle
) strong{
  color:#111827 !important;
}

html[data-attendant-appearance="light"] body.attendantMobileMode .attendantMobile :is(
  .mobilePaymentClientResult,
  .mobileClientSearchResult,
  .mobileClientRecentInfo,
  .mobileClientEmpty,
  .mobileClientRecentToggle
) :is(span, em){
  color:#475569 !important;
}

/* Controles auxiliares abertos a partir do mobile da atendente. */
html[data-attendant-appearance="light"] body.attendantMobileMode :is(
  .modal,
  .modalContent,
  .modalPanel,
  .appModal,
  .systemModal,
  .adminUnitDetailsDialog,
  .registryModalDialog,
  .closingModalCard,
  .machineReadingModalCard
){
  border-color:rgba(71,85,105,.18) !important;
  color:#111827 !important;
  background:#ffffff !important;
  box-shadow:0 26px 70px rgba(15,23,42,.18) !important;
}

html[data-attendant-appearance="light"] body.attendantMobileMode :is(.appSelectOptions, .calendarPopover, .avatarDropdown, .mobileAvatarDropdown){
  color:#111827 !important;
  background:#ffffff !important;
}

html[data-attendant-appearance="light"] body.attendantMobileMode :is(.appSelectOption, .calendarDay){
  color:#111827 !important;
  background:transparent !important;
}

html[data-attendant-appearance="light"] body.attendantMobileMode :is(.appSelectOption:hover, .appSelectOption.selected, .calendarDay:hover){
  color:#0f172a !important;
  background:#e8f1ff !important;
}

html[data-attendant-appearance="light"] body.attendantMobileMode :is(
  .cashTile,
  .statementRow,
  .reportCard,
  .machineCard,
  .registryCard,
  .settingsCard,
  .attendantRow,
  .closingCard
){
  border-color:rgba(71,85,105,.18) !important;
  color:#111827 !important;
  background:#ffffff !important;
  box-shadow:0 12px 28px rgba(15,23,42,.07) !important;
}

html[data-attendant-appearance="light"] body.attendantMobileMode :is(button, [role="button"]):focus-visible,
html[data-attendant-appearance="light"] body.attendantMobileMode :is(input, textarea, select, .appSelectButton):focus-visible{
  outline:3px solid rgba(37,99,235,.20) !important;
  outline-offset:2px;
}

/* Controles que possuem superfícies próprias no fluxo mobile da atendente. */
html[data-attendant-appearance="light"] body.attendantMobileMode .attendantMobile .mobileBackButton,
html[data-attendant-appearance="light"] body.attendantMobileMode .mobileMachinePickerClose{
  border-color:#cbd5e1 !important;
  color:#172033 !important;
  background:#f1f5f9 !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.92) !important;
}

html[data-attendant-appearance="light"] body.attendantMobileMode .attendantMobile #mobileClientsPanel .mobileClientModeTabs button{
  border-color:#cbd5e1 !important;
  color:#334155 !important;
  background:#f8fafc !important;
  box-shadow:none !important;
}

html[data-attendant-appearance="light"] body.attendantMobileMode .attendantMobile #mobileClientsPanel .mobileClientModeTabs button.active{
  border-color:#67e8f9 !important;
  color:#071520 !important;
  background:linear-gradient(135deg, #5eead4, #38bdf8) !important;
  box-shadow:0 8px 18px rgba(14,165,233,.18), inset 0 1px 0 rgba(255,255,255,.64) !important;
}

html[data-attendant-appearance="light"] body.attendantMobileMode .attendantMobile.mobilePanelActive
  :is(#mobilePaymentPanel, #mobileReadingPanel)
  :is(.mobilePaymentMachineControl, .mobileReadingMachineControl){
  border-color:#cbd5e1 !important;
  background:#f8fafc !important;
  box-shadow:inset 0 1px 2px rgba(15,23,42,.05), 0 0 0 1px rgba(255,255,255,.84) !important;
}

html[data-attendant-appearance="light"] body.attendantMobileMode .attendantMobile.mobilePanelActive
  :is(#mobilePaymentPanel, #mobileReadingPanel)
  :is(.mobilePaymentMachinePickerTrigger, .mobileReadingMachinePickerTrigger){
  border-left-color:#cbd5e1 !important;
  color:#0369a1 !important;
  background-color:#eef6ff !important;
  background-image:none !important;
  box-shadow:none !important;
}

html[data-attendant-appearance="light"] body.attendantMobileMode
  :is(.mobilePaymentMachinePickerTrigger, .mobileReadingMachinePickerTrigger){
  background-color:#eef6ff !important;
  background-image:none !important;
}

html[data-attendant-appearance="light"] body.attendantMobileMode .attendantMobile.mobilePanelActive
  :is(#mobilePaymentPanel, #mobileReadingPanel)
  :is(.mobilePaymentMachinePickerTrigger, .mobileReadingMachinePickerTrigger)::after{
  color:#0369a1 !important;
}

/* Os seletores de máquina e cliente são inseridos diretamente no body. */
html[data-attendant-appearance="light"] body.attendantMobileMode .mobileMachinePickerOverlay{
  background:rgba(15,23,42,.30) !important;
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}

html[data-attendant-appearance="light"] body.attendantMobileMode .mobileMachinePickerCard{
  border-color:#cbd5e1 !important;
  color:#111827 !important;
  background:#ffffff !important;
  box-shadow:0 24px 64px rgba(15,23,42,.22), inset 0 1px 0 rgba(255,255,255,.96) !important;
}

html[data-attendant-appearance="light"] body.attendantMobileMode .mobileMachinePickerHeader strong{
  color:#111827 !important;
}

html[data-attendant-appearance="light"] body.attendantMobileMode .mobileCashSelectSearch{
  border-color:#94a3b8 !important;
  color:#111827 !important;
  -webkit-text-fill-color:#111827 !important;
  background:#f8fafc !important;
  box-shadow:inset 0 1px 2px rgba(15,23,42,.06) !important;
}

html[data-attendant-appearance="light"] body.attendantMobileMode .mobileCashSelectSearch::placeholder{
  color:#64748b !important;
  -webkit-text-fill-color:#64748b !important;
  opacity:1 !important;
}

html[data-attendant-appearance="light"] body.attendantMobileMode .mobileMachinePickerOption{
  border-color:#d7dee8 !important;
  color:#111827 !important;
  background:#f8fafc !important;
  box-shadow:none !important;
}

html[data-attendant-appearance="light"] body.attendantMobileMode .mobileMachinePickerOption:is(:hover, :active, .active){
  border-color:#7dd3fc !important;
  color:#0f172a !important;
  background:#e8f1ff !important;
}

html[data-attendant-appearance="light"] body.attendantMobileMode .mobileMachinePickerCard .mobileClientNotice,
html[data-attendant-appearance="light"] body.attendantMobileMode .mobileMachinePickerCard .mobileClientNotice :is(strong, span){
  color:#475569 !important;
}
