/* ==========================================================================
   REALISEMOTION RURAL - CAMERA SETTINGS MENU THEME (CONCISE FIXED-LABEL ENGINE)
   ========================================================================== */

/* 1. MASTER WORKSPACE CONTAINER BACKDROP FILL 
   FIXED: Converted into an explicit viewport height flexbox panel to freeze labels! */
.settings-workspace-wrapper {
    width: 100% !important;
    height: calc(100vh - 156px) !important; /* Hard-locks bounds between top navbar and footer bar */
    max-height: calc(100vh - 156px) !important;
    display: flex !important;
    flex-direction: column !important; /* Sets up a clean vertical stacked execution line */
    overflow: hidden !important; /* HARD CONSTRAINT: Permanently freezes labels from scrolling! */
    background-color: var(--rm-page) !important; /* Cool, premium daylight slate backdrop replaces old greys */
    color: var(--rm-text) !important; /* True deep slate ink typography for high legibility */
    box-sizing: border-box !important;
    padding: 0 !important;
    margin: 0 auto !important;
}

    /* 2. TOP TELEMETRY STATUS DIAGNOSTICS SUMMARY ROW 
   FIXED PINNING: Centred and isolated outside of any scrolling containers tracks! */
    .settings-workspace-wrapper .settings-diagnostics-summary-row,
    .settings-diagnostics-summary-row {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important; /* FORCES YOUR 4 STATUS PILLS TO PACK PERFECTLY CENTERED */
        align-items: center !important;
        gap: 10px !important;
        width: 100% !important;
        margin: 4px auto 14px auto !important;
        flex-shrink: 0 !important; /* ROADBLOCK: Stops labels from compressing or flattening */
        box-sizing: border-box !important;
    }

        .settings-diagnostics-summary-row .diagnostic-pill {
            background-color: var(--rm-surface) !important; /* Solid white summary pills */
            border: 1px solid var(--rm-border) !important; /* Clean framing outlines pass contrast checks */
            color: var(--rm-text-secondary) !important; /* Meets regular body text contrast barriers */
            padding: 6px 14px !important;
            font-size: 0.76rem !important;
            font-weight: 700 !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            box-sizing: border-box !important;
            margin: 0 !important;
        }

/* 3. CONSOLIDATED SINGLE COLUMN MASONRY ROW GATES
   FIXED: Eradicated the multi-panel grid split, fusing your sections 
   into a single, premium, continuous card container scroll box lane! */
.settings-cards-masonry-grid {
    flex: 1 !important; /* Fills up all remaining vertical room below the labels */
    display: flex !important; /* FIXED: Changes from grid to flex to group cards into one body */
    flex-direction: column !important;
    gap: 12px !important; /* Concise spacing reduces loose padding sizes */
    width: 100% !important;
    max-width: 600px !important; /* Tight layout width prevents look from stretching loose */
    margin: 0 auto !important;
    box-sizing: border-box !important;
    overflow-y: auto !important; /* FIXED: The scrollbar starts here and completely excludes the labels! */
    overflow-x: hidden !important;
    padding: 4px 4px 40px 4px !important; /* Bottom buffer track zone leaves breathing room above footer */
    -webkit-overflow-scrolling: touch !important;
}

    .settings-cards-masonry-grid .settings-tactical-card {
        background-color: var(--rm-surface) !important; /* Forces your core slate cards onto a premium white backdrop */
        border: 1px solid var(--rm-border) !important; /* Slate framing outlines pass 3:1 non-text bounds */
        border-radius: 6px !important;
        padding: 16px !important; /* Concise compact interior padding */
        box-shadow: 0 2px 4px rgba(15, 23, 42, 0.02) !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important; /* Concise spacing inside card tracks */
        width: 100% !important;
        flex-shrink: 0 !important; /* Prevents card fields from crushing down */
    }

    /* Full width row expansion for maintenance cards grids mapping */
    .settings-cards-masonry-grid .card-span-full {
        grid-column: auto !important;
    }

/* Typography elements optimization and accessible weights */
.settings-tactical-card .card-tactical-title {
    color: #1E293B !important; /* Deep corporate slate header text */
    font-weight: 800 !important;
    font-size: 0.9rem !important;
    margin: 0 !important;
}

.settings-tactical-card .card-meta-explanation {
    color: var(--rm-text-secondary) !important; /* Satisfies regular body text contrast barriers */
    font-size: 0.75rem !important;
    line-height: 1.3 !important;
    margin: 0 !important;
}

/* 4. TOGGLE ROWS AND FIELD DATA LABELS METRICS */
.settings-tactical-card .toggle-control-item {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 6px 0 !important;
    border-bottom: 1px solid var(--rm-page) !important; /* Discrete inside cell division rows */
    box-sizing: border-box !important;
    width: 100% !important;
}

.settings-tactical-card .toggle-meta-label {
    color: #374151 !important; /* Bold dark gray data labeling tags description */
    font-weight: 700 !important;
    font-size: 0.78rem !important;
}

/* 5. DYNAMIC INTERACTIVE COMPONENT BUTTON ACCENTS OVERRIDES */
.settings-tactical-card .btn,
.settings-tactical-card .btn-secondary,
.settings-tactical-card .btn-sm,
.settings-tactical-card button,
.settings-tactical-card button[type="button"] {
    background-color: #E2E8F0 !important; /* Premium clean daylight grey button face fill */
    color: #1E293B !important; /* True deep slate ink typography text */
    border: 1px solid var(--rm-border-strong) !important; /* Sharp border outline contours pass contrast limits */
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    border-radius: 4px !important;
    height: 32px !important; /* Concise height profile prevents bloated oversized boxes */
    max-height: 32px !important;
    padding: 0 14px !important;
    display: inline-flex !important;
    align-items: center !important; /* FIXED: Forcefully locks text aligned vertically centered inside buttons! */
    justify-content: center !important; /* FIXED: Centers text horizontally inside button face */
    box-shadow: none !important;
    cursor: pointer !important;
    transition: all 0.1s ease-in-out !important;
    box-sizing: border-box !important;
    text-transform: none !important; /* Eliminates raw browser button capitalization skew */
    margin: 0 !important;
    line-height: 1 !important; /* Eradicates default Bootstrap vertical text alignment skewing! */
}

    /* Hover active feedback response tracks mapping */
    .settings-tactical-card .btn:hover,
    .settings-tactical-card button:hover,
    .settings-tactical-card button[type="button"]:hover {
        background-color: var(--rm-border) !important; /* Subtle gray feedback on mouse hover overlay */
        color: var(--rm-text) !important;
        border-color: #64748B !important;
    }

    /* Keyboard focus rings for accessible tab tracking targets */
    .settings-tactical-card .btn:focus-visible,
    .settings-tactical-card button:focus-visible,
    .settings-tactical-card button[type="button"]:focus-visible {
        outline: 3px solid var(--rm-success) !important; /* Focus indicator ring anchor */
        outline-offset: 2px !important;
    }

    /* FIXED LOGS SYSTEM BUTTON COMPACT CONSTRAINT 
   FIXED: Strips out giant fluid behavior, locking width and height to match others perfectly! */
    .settings-tactical-card button.btn-custom-size.w-100 {
        width: 156px !important;
        max-width: 156px !important;
        height: 32px !important;
        max-height: 32px !important;
        font-size: 0.75rem !important;
        margin: 4px auto 0 auto !important; /* Centers the button horizontally inside its area */
    }

/* System Actions Danger Header Color pop marker rules */
.settings-tactical-card .text-danger {
    color: var(--rm-danger) !important;
}

/* ==========================================================================
   6. GLOBAL FOOTER NAVIGATION CENTERING LOCKS
   FIXED: Strips Bootstrap layout overrides off your horizontal control bar
   ========================================================================== */
.app-bottom-navbar .btn,
.app-bottom-navbar .btn-secondary,
.app-bottom-navbar .btn-sm {
    margin: 0 !important; /* Forcefully flushes out Bootstrap left margins */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}
