/* P226 account-synced mobile personalization, alignment and print choices. */
body[data-mobile-mode="true"] .mobile-quick-item,
body[data-mobile-mode="true"] .mobile-today-stat,
body[data-mobile-mode="true"] .label-module-card,
body[data-mobile-mode="true"] .label-stat,
body[data-mobile-mode="true"] .mobile-order-actions .btn,
body[data-mobile-mode="true"] .print-task-form-actions .btn {
    text-align: center !important;
}

body[data-mobile-mode="true"] .mobile-quick-item[data-mobile-span="2"] {
    align-items: center !important;
}

body[data-mobile-mode="true"] .mobile-section-heading h2,
body[data-mobile-mode="true"] .mobile-section-tools,
body[data-mobile-mode="true"] .label-page-header,
body[data-mobile-mode="true"] .label-stat-strip {
    align-items: center;
}

body[data-mobile-mode="true"] .mobile-order-actions {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}

.mobile-config-pair {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 8px;
}

.mobile-theme-toggle {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}

.mobile-theme-toggle button {
    min-width: 0;
    min-height: 40px;
    padding: 4px 2px;
    border: 1px solid #dbe3ec;
    border-radius: 7px;
    background: #fff;
    color: #33465e;
    font-size: 11px;
}

.mobile-theme-toggle button.is-active {
    border-color: var(--mobile-accent);
    background: color-mix(in srgb, var(--mobile-accent) 10%, #fff);
    color: var(--mobile-accent);
    font-weight: 700;
}

.mobile-config-sync {
    min-height: 24px;
    padding-top: 7px;
    color: #718096;
    font-size: 11px;
    text-align: center;
}

.mobile-config-sync[data-sync-state="saved"] { color: #167451; }
.mobile-config-sync[data-sync-state="saving"] { color: #1769d2; }
.mobile-config-sync[data-sync-state="offline"] { color: #a15b12; }

.mobile-print-choice { display: none; }

body[data-mobile-mode="true"] .mobile-print-choice {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}

body[data-mobile-mode="true"] .mobile-print-choice .btn {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

body[data-mobile-mode="true"][data-mobile-theme="scifi"] {
    --mobile-accent: #008c95;
    --mobile-ink: #162b2d;
    --mobile-muted: #617a7d;
    --mobile-border: #c7dddd;
    --mobile-surface: #f9ffff;
    --mobile-background: #e9f4f3;
}

body[data-mobile-mode="true"][data-mobile-theme="pink"] {
    --mobile-accent: #c94d7d;
    --mobile-ink: #392430;
    --mobile-muted: #866c78;
    --mobile-border: #ead3dc;
    --mobile-surface: #fffafd;
    --mobile-background: #fff2f7;
}

body[data-mobile-mode="true"][data-mobile-theme="gray"] {
    --mobile-accent: #596572;
    --mobile-ink: #252b31;
    --mobile-muted: #747b83;
    --mobile-border: #d6d9dd;
    --mobile-surface: #ffffff;
    --mobile-background: #eff1f3;
}

body[data-mobile-mode="true"][data-mobile-theme="scifi"] .mobile-top { background: #24575c !important; }
body[data-mobile-mode="true"][data-mobile-theme="pink"] .mobile-top { background: #bd527b !important; }
body[data-mobile-mode="true"][data-mobile-theme="gray"] .mobile-top { background: #58616b !important; }

body[data-mobile-mode="true"][data-mobile-theme]:not([data-mobile-theme="standard"]) .mobile-hub,
body[data-mobile-mode="true"][data-mobile-theme]:not([data-mobile-theme="standard"]) .main-wrap {
    background: var(--mobile-background) !important;
}

body[data-mobile-mode="true"][data-mobile-theme]:not([data-mobile-theme="standard"]) .mobile-app-header,
body[data-mobile-mode="true"][data-mobile-theme]:not([data-mobile-theme="standard"]) .mobile-app-bottom-nav-inner,
body[data-mobile-mode="true"][data-mobile-theme]:not([data-mobile-theme="standard"]) .mobile-bottom-nav-inner,
body[data-mobile-mode="true"][data-mobile-theme]:not([data-mobile-theme="standard"]) .mobile-config-panel {
    border-color: var(--mobile-border);
    background: var(--mobile-surface);
}

body[data-mobile-mode="true"][data-mobile-theme]:not([data-mobile-theme="standard"]) .mobile-nav-link.active,
body[data-mobile-mode="true"][data-mobile-theme]:not([data-mobile-theme="standard"]) .mobile-app-nav-link.is-active {
    color: var(--mobile-accent) !important;
}

body[data-mobile-mode="true"][data-mobile-theme]:not([data-mobile-theme="standard"]) .mobile-scan-disc,
body[data-mobile-mode="true"][data-mobile-theme]:not([data-mobile-theme="standard"]) .mobile-app-scan-disc {
    background: var(--mobile-accent) !important;
}

@media (max-width: 359px) {
    .mobile-config-pair { grid-template-columns: 1fr; }
    .mobile-theme-toggle { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
