.setting-page-container:has(> ._admin-backoffice-container #abo-view-control-settings:not(.dis-none)),
._admin-backoffice-container:has(#abo-view-control-settings:not(.dis-none)),
.admin-backoffice-container:has(#abo-view-control-settings:not(.dis-none)) > .abo-layout {
  height: 100%;
  min-height: 0;
}
.admin-backoffice-container:has(#abo-view-control-settings:not(.dis-none)) .abo-main { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.admin-backoffice-container:has(#abo-view-control-settings:not(.dis-none)) .abo-mobile-nav { flex: none; }
.admin-backoffice-container:has(#abo-view-control-settings:not(.dis-none)) .abo-content-padding { flex: 1; min-height: 0; padding-bottom: 0; }
#app-control-form { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.app-control-page { letter-spacing: 0; }
.app-control-settings { min-width: 0; padding: 20px; border: 1px solid var(--pos-border); border-radius: 8px; background: var(--pos-surface); }
.app-control-settings h2 { margin: 0 0 8px; color: var(--pos-text); font-size: 15px; font-weight: 600; }
.app-control-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) 44px; align-items: center; gap: 12px; min-height: 88px; padding: 16px 0; border-bottom: 1px solid var(--pos-border); }
.app-control-row:last-child { border-bottom: 0; }
.app-control-info { min-width: 0; }
.app-control-info label { display: block; margin: 0; background: transparent; color: var(--pos-text); font-size: 13px; font-weight: 600; cursor: pointer; overflow-wrap: anywhere; }
.app-control-info p { margin: 5px 0 0; color: var(--pos-muted); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.app-control-icon { display: grid; flex: none; place-items: center; width: 36px; height: 36px; border-radius: 8px; color: var(--module-accent, var(--pos-primary-text)); background: color-mix(in srgb, var(--module-accent, var(--pos-primary)) 9%, var(--pos-surface)); font-size: 17px; }
.app-control-icon[data-color=emerald] { --module-accent: #059669; }
.app-control-icon[data-color=purple] { --module-accent: #8b5cf6; }
.app-control-icon[data-color=blue] { --module-accent: #3b82f6; }
.app-control-icon[data-color=amber] { --module-accent: #d97706; }
.app-control-switch { position: relative; display: grid; place-items: center; width: 44px; height: 44px; }
#abo-view-control-settings .app-control-switch input { position: absolute; inset: 0; width: 44px; height: 44px; margin: 0; opacity: 0; visibility: visible; cursor: pointer; z-index: 1; }
.app-control-switch-track { display: block; position: relative; width: 36px; height: 20px; border: 1px solid var(--pos-border); border-radius: 12px; background: var(--pos-border); pointer-events: none; }
.app-control-switch-track::before { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--pos-surface); transition: transform 140ms ease; }
.app-control-switch input:checked + .app-control-switch-track { border-color: var(--pos-primary); background: var(--pos-primary); }
.app-control-switch input:checked + .app-control-switch-track::before { transform: translateX(16px); background: var(--pos-primary-ink); }
.app-control-switch input:focus-visible + .app-control-switch-track { outline: 2px solid var(--pos-primary); outline-offset: 3px; }
.app-control-switch input:disabled { cursor: not-allowed; }
.app-control-switch input:disabled + .app-control-switch-track { opacity: .5; }
.app-control-preview { overflow: hidden; border: 1px solid var(--pos-border); border-radius: 8px; background: var(--pos-surface); }
.app-control-preview-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 16px; border-bottom: 1px solid var(--pos-border); }
.app-control-preview-heading strong { color: var(--pos-text); font-size: 12px; font-weight: 600; }
.app-control-preview-heading span { color: var(--pos-muted); font-size: 11px; }
.app-control-preview-item { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 12px 16px; border-bottom: 1px solid var(--pos-border); }
.app-control-preview-item:last-child { border-bottom: 0; }
.app-control-preview-item strong { flex: 1; min-width: 0; color: var(--pos-text); font-size: 12px; font-weight: 500; overflow-wrap: anywhere; }
.app-control-preview-item > i { color: var(--pos-muted); font-size: 10px; }
.app-control-preview .app-control-icon { width: 30px; height: 30px; font-size: 14px; }
.app-control-empty { margin: 0; padding: 24px 16px; color: var(--pos-muted); font-size: 12px; text-align: center; }
.app-control-page .pos-theme-actions { flex-direction: row; }
.apps-control-state { display: flex; align-items: center; gap: 12px; grid-column: 1 / -1; padding: 20px 0; color: var(--pos-muted); font-size: 13px; }
.apps-control-state button { min-height: 36px; padding: 6px 12px; border: 1px solid var(--pos-border); border-radius: 6px; background: var(--pos-surface); color: var(--pos-text); font: inherit; }
.apps-module-icon > i { font-size: 20px; }
@media (min-width: 1051px) { .app-control-page .app-control-grid { grid-template-columns: minmax(0, 1fr) 280px; } }
@media (max-width: 1050px) {
  .app-control-page .app-control-grid { grid-template-columns: minmax(0, 1fr); }
  .app-control-page .pos-theme-preview-column { position: static; }
  .app-control-page .pos-theme-preview-caption { max-width: none; }
}
@media (max-width: 450px) {
  .app-control-settings { padding: 16px; }
  .app-control-row { grid-template-columns: 30px minmax(0, 1fr) 44px; gap: 8px; }
  .app-control-row > .app-control-icon { width: 30px; height: 30px; font-size: 15px; }
  .app-control-page .pos-theme-actions [data-control-action=cancel] { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) { .app-control-switch-track::before { transition: none; } }