:root {
    --ig-navy-950: #071827;
    --ig-navy-900: #0b2239;
    --ig-navy-800: #123652;
    --ig-blue-700: #245a82;
    --ig-blue-600: #2f6f9f;
    --ig-blue-100: #e7f0f7;
    --ig-slate-950: #17212b;
    --ig-slate-700: #425466;
    --ig-slate-500: #687888;
    --ig-slate-300: #c9d3dd;
    --ig-slate-200: #dce3e9;
    --ig-slate-100: #edf2f6;
    --ig-slate-50: #f6f8fa;
    --ig-surface: #ffffff;
    --ig-success: #247a52;
    --ig-warning: #a86614;
    --ig-danger: #b83a3a;
    --ig-focus: #70b7e8;
    --ig-radius-sm: 6px;
    --ig-radius-md: 10px;
    --ig-radius-lg: 16px;
    --ig-shadow-sm: 0 2px 8px rgba(7, 24, 39, 0.08);
    --ig-shadow-md: 0 12px 32px rgba(7, 24, 39, 0.12);
    --ig-transition: 160ms ease;
}

html {
    color-scheme: light;
}

body {
    background: var(--ig-slate-50);
    color: var(--ig-slate-950);
    font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--ig-blue-700);
}

a:hover {
    color: var(--ig-navy-900);
}

:where(a, button, input, select, textarea):focus-visible {
    outline: 3px solid color-mix(in srgb, var(--ig-focus) 70%, transparent);
    outline-offset: 2px;
}

.card {
    border: 1px solid var(--ig-slate-200) !important;
    border-radius: var(--ig-radius-md) !important;
    box-shadow: var(--ig-shadow-sm) !important;
}

.card-header,
.card-header-industrial {
    background: var(--ig-navy-900) !important;
    border-bottom: 0 !important;
    color: var(--ig-surface) !important;
}

.form-label {
    color: var(--ig-slate-700);
    font-weight: 650;
}

.form-control,
.form-select,
.input-group-text {
    border-color: var(--ig-slate-300);
    border-radius: var(--ig-radius-sm);
    min-height: 44px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--ig-blue-600);
    box-shadow: 0 0 0 3px rgba(47, 111, 159, 0.16);
}

.input-group-text {
    background: var(--ig-slate-100);
    color: var(--ig-slate-700);
}

.btn {
    align-items: center;
    border-radius: var(--ig-radius-sm) !important;
    display: inline-flex;
    font-weight: 650;
    justify-content: center;
    min-height: 42px;
    transition: background-color var(--ig-transition), border-color var(--ig-transition),
                box-shadow var(--ig-transition), color var(--ig-transition),
                transform var(--ig-transition);
}

.btn:hover:not(:disabled):not(.disabled) {
    transform: translateY(-1px);
}

.btn-primary,
.btn-ingresar {
    background: var(--ig-navy-900) !important;
    border-color: var(--ig-navy-900) !important;
    color: var(--ig-surface) !important;
}

.btn-primary:hover,
.btn-ingresar:hover {
    background: var(--ig-navy-800) !important;
    border-color: var(--ig-navy-800) !important;
}

.btn-outline-primary {
    border-color: var(--ig-blue-700) !important;
    color: var(--ig-blue-700) !important;
}

.btn-outline-primary:hover {
    background: var(--ig-blue-700) !important;
    color: var(--ig-surface) !important;
}

.btn-danger {
    background: var(--ig-danger) !important;
    border-color: var(--ig-danger) !important;
}

.btn:disabled,
.btn.disabled,
button[aria-busy="true"] {
    cursor: wait !important;
    opacity: 0.7 !important;
    pointer-events: none;
    transform: none !important;
}

button.is-submitting::after {
    animation: ig-spin 0.75s linear infinite;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    border-top-color: currentColor;
    content: "";
    height: 1rem;
    margin-left: 0.6rem;
    width: 1rem;
}

@keyframes ig-spin {
    to { transform: rotate(360deg); }
}

/* Cabecera compartida */
.custom-header {
    background: var(--ig-navy-950) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 6px 20px rgba(7, 24, 39, 0.2) !important;
}

.header-title-custom {
    font-size: clamp(1.05rem, 2vw, 1.35rem) !important;
    font-weight: 650 !important;
    letter-spacing: 0.015em;
    text-shadow: none !important;
}

.btn-nav-custom {
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    box-shadow: none !important;
    color: var(--ig-surface) !important;
}

.btn-nav-custom:hover {
    background: var(--ig-surface) !important;
    border-color: var(--ig-surface) !important;
    color: var(--ig-navy-900) !important;
}

.user-name-display {
    color: rgba(255, 255, 255, 0.72) !important;
    letter-spacing: 0.02em;
}

/* Superficies de aplicación */
.app-shell-page {
    background: var(--ig-slate-50) !important;
}

.app-shell-page .main-wrapper {
    margin-top: 2rem;
    padding-bottom: 3rem;
}

.page-heading {
    color: var(--ig-navy-900);
    font-size: clamp(1.55rem, 3vw, 2rem);
    font-weight: 720;
    letter-spacing: -0.025em;
}

.page-kicker {
    color: var(--ig-blue-700);
    font-size: 0.75rem;
    font-weight: 750;
    letter-spacing: 0.1em;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
}

.page-description {
    color: var(--ig-slate-500);
    margin: 0.45rem 0 0;
}

.app-toolbar {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.surface-panel,
.table-container {
    background: var(--ig-surface) !important;
    border: 1px solid var(--ig-slate-200) !important;
    border-radius: var(--ig-radius-md) !important;
    box-shadow: var(--ig-shadow-sm) !important;
    padding: clamp(0.35rem, 2vw, 1rem) !important;
}

.data-table {
    --bs-table-hover-bg: var(--ig-blue-100);
    color: var(--ig-slate-950);
}

.data-table thead,
.data-table .table-dark {
    --bs-table-bg: var(--ig-navy-900);
    --bs-table-border-color: var(--ig-navy-800);
    --bs-table-color: var(--ig-surface);
}

.data-table thead th {
    border-bottom: 0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.data-table tbody td {
    border-color: var(--ig-slate-200);
    padding-bottom: 0.9rem;
    padding-top: 0.9rem;
}

.device-row:hover {
    background: var(--ig-blue-100) !important;
}

.device-id {
    color: var(--ig-blue-700) !important;
    font-variant-numeric: tabular-nums;
}

.sensor-count-badge {
    background: var(--ig-blue-100) !important;
    border: 1px solid #bed2e1 !important;
    color: var(--ig-navy-800) !important;
    font-size: 0.8rem;
    min-width: 2.2rem;
    padding: 0.42rem 0.65rem;
}

.btn-view-toggle {
    align-items: center;
    background: var(--ig-surface) !important;
    border: 1px solid var(--ig-slate-300) !important;
    border-radius: var(--ig-radius-sm) !important;
    color: var(--ig-slate-700) !important;
    display: inline-flex;
    font-size: 0.87rem !important;
    font-weight: 650 !important;
    min-height: 42px;
    padding: 0.5rem 0.85rem !important;
}

.btn-view-toggle.active {
    background: var(--ig-navy-900) !important;
    border-color: var(--ig-navy-900) !important;
    box-shadow: none !important;
    color: var(--ig-surface) !important;
}

.btn-view-toggle.disabled {
    background: var(--ig-slate-100) !important;
    border-color: var(--ig-slate-200) !important;
    color: var(--ig-slate-500) !important;
}

.empty-state {
    color: var(--ig-slate-500);
    padding: 3.5rem 1rem !important;
}

/* Acceso */
.app-auth-page {
    align-items: center;
    background: var(--ig-slate-100) !important;
    display: flex;
    min-height: 100vh;
    padding: 1.5rem 0;
}

.app-auth-page .auth-container {
    border: 1px solid var(--ig-slate-200) !important;
    border-radius: var(--ig-radius-lg) !important;
    box-shadow: var(--ig-shadow-md) !important;
    max-width: 940px;
}

.app-auth-page .auth-sidebar {
    background: linear-gradient(155deg, var(--ig-navy-950), var(--ig-navy-800)) !important;
    padding: clamp(2.25rem, 5vw, 3.5rem) !important;
}

.app-auth-page .auth-form-section {
    background: var(--ig-surface);
    padding: clamp(2rem, 6vw, 4rem) !important;
}

.app-auth-page .btn-ingresar {
    letter-spacing: 0.055em;
    min-height: 48px;
}

.app-auth-page .error-alert {
    background: #fff5f5;
    border: 1px solid #efc2c2;
    border-radius: var(--ig-radius-sm);
    color: var(--ig-danger);
}

@media (max-width: 767.98px) {
    .app-auth-page {
        align-items: flex-start;
        padding: 1rem 0;
    }

    .app-auth-page .auth-container {
        border-radius: var(--ig-radius-md) !important;
    }

    .app-toolbar {
        align-items: stretch;
        flex-direction: column;
        margin-top: 1rem;
    }

    .app-toolbar > * {
        width: 100%;
    }

    .app-toolbar .btn-group,
    .app-toolbar .input-group {
        display: flex;
        width: 100%;
    }

    .app-toolbar .btn-view-toggle {
        flex: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* Shell de aplicación 2026 */
.has-app-shell {
    background: #eef3f7;
    min-height: 100vh;
    padding-left: 278px;
}

.app-sidebar {
    background: linear-gradient(180deg, #061827 0%, #0a2438 62%, #0c2d45 100%);
    box-shadow: 12px 0 40px rgba(7, 24, 39, 0.16);
    color: #fff;
    display: flex;
    flex-direction: column;
    height: 100vh;
    left: 0;
    padding: 1.6rem 1.25rem 1.25rem;
    position: fixed;
    top: 0;
    width: 278px;
    z-index: 1040;
}

.app-sidebar-brand { border-bottom: 1px solid rgba(255,255,255,.1); padding: 0 .4rem 1.25rem; }
.app-sidebar-brand img { filter: brightness(0) invert(1); height: 43px; max-width: 180px; object-fit: contain; object-position: left center; }
.app-sidebar-brand span { color: #8ea9bb; display: block; font-size: .68rem; font-weight: 700; letter-spacing: .14em; margin-top: .45rem; text-transform: uppercase; }
.app-product-mark { align-items: center; display: flex; gap: .75rem; padding: 1.45rem .35rem 1.1rem; }
.app-product-icon { align-items: center; background: #1d587b; border: 1px solid rgba(255,255,255,.13); border-radius: 12px; display: flex; height: 43px; justify-content: center; width: 43px; }
.app-product-mark strong, .app-product-mark small { display: block; }
.app-product-mark strong { font-size: .96rem; letter-spacing: .01em; }
.app-product-mark small { color: #8faabc; font-size: .72rem; margin-top: .1rem; }
.app-sidebar .app-sidebar-nav { align-items: stretch; display: flex; flex: 1 1 auto; flex-direction: column; gap: .35rem; justify-content: flex-start; margin: 0; min-height: 0; overflow-x: hidden; overflow-y: auto; padding: 0 .15rem 0 0; scrollbar-color: rgba(255,255,255,.2) transparent; scrollbar-width: thin; width: 100%; }
.app-sidebar .app-nav-caption { align-self: stretch; color: #7895a8; display: block; font-size: .62rem; font-weight: 800; letter-spacing: .16em; margin: 1.2rem .8rem .3rem; text-align: left; width: auto; }
.app-sidebar .app-nav-link { align-items: center; align-self: stretch; border-radius: 9px; color: #b9cad5; display: flex; flex: 0 0 auto; font-size: .86rem; font-weight: 650; gap: .8rem; justify-content: flex-start; margin: 0; min-height: 45px; padding: .65rem .8rem; text-align: left; text-decoration: none; width: 100%; }
.app-nav-link i, .app-nav-link svg { font-size: .95rem; text-align: center; width: 20px; }
.app-nav-link:hover { background: rgba(255,255,255,.07); color: #fff; }
.app-nav-link.is-active { background: linear-gradient(135deg, #286c98, #1d567b); box-shadow: 0 8px 22px rgba(0,0,0,.2); color: #fff; }
.app-device-context { border-left: 2px solid #347ca8; margin: 0 .65rem .45rem; min-width: 0; padding: .15rem 0 .15rem .65rem; }
.app-device-context strong, .app-device-context small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-device-context strong { color: #dce8ee; font-size: .72rem; }
.app-device-context small { color: #7897aa; font-size: .62rem; margin-top: .12rem; }
.app-sidebar-footer { margin-top: auto; }
.app-user-card { align-items: center; border-top: 1px solid rgba(255,255,255,.1); display: flex; gap: .7rem; margin-top: 1rem; padding: 1rem .25rem .7rem; }
.app-user-avatar { align-items: center; background: rgba(255,255,255,.1); border-radius: 50%; display: flex; flex: 0 0 35px; height: 35px; justify-content: center; }
.app-user-card small, .app-user-card strong { display: block; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-user-card small { color: #809eaf; font-size: .66rem; }
.app-user-card strong { color: #fff; font-size: .78rem; }
.app-context-action { align-items: center; border: 1px solid rgba(255,255,255,.15); border-radius: 8px; color: #d9e4ea; display: flex; font-size: .78rem; font-weight: 650; gap: .65rem; justify-content: center; margin-top: .35rem; min-height: 40px; text-decoration: none; }
.app-context-action:hover { background: rgba(255,255,255,.08); color: #fff; }
.app-partner-link { align-items: center; color: #7995a7; display: flex; font-size: .6rem; gap: .6rem; justify-content: center; margin-top: .9rem; text-decoration: none; }
.app-partner-link img { background: #fff; border-radius: 4px; height: 21px; max-width: 85px; object-fit: contain; padding: 2px 5px; }
.app-mobile-header, .app-sidebar-backdrop { display: none; }

/* Dashboard principal */
.operations-dashboard { margin: 0 auto; max-width: 1500px; padding: clamp(1.5rem, 3vw, 3.25rem); }
.dashboard-heading { align-items: end; display: flex; gap: 2rem; justify-content: space-between; margin-bottom: 1.8rem; }
.dashboard-eyebrow { color: var(--ig-blue-700); font-size: .68rem; font-weight: 800; letter-spacing: .16em; margin-bottom: .55rem; text-transform: uppercase; }
.dashboard-heading h1 { color: var(--ig-navy-950); font-size: clamp(1.8rem, 3vw, 2.65rem); font-weight: 750; letter-spacing: -.035em; margin: 0; }
.dashboard-heading p { color: var(--ig-slate-500); font-size: .94rem; margin: .45rem 0 0; max-width: 650px; }
.monitoring-view-switch { background: #dde6ed; border: 1px solid #d1dde5; border-radius: 11px; display: inline-flex; padding: 4px; }
.monitoring-view-option { align-items: center; border-radius: 7px; display: flex; font-size: .78rem; font-weight: 750; gap: .45rem; min-height: 38px; padding: .48rem .82rem; text-decoration: none; white-space: nowrap; }
.monitoring-view-option.is-current { color: #758895; cursor: default; }
.monitoring-view-option.is-action { background: var(--ig-navy-900); box-shadow: 0 4px 12px rgba(7,24,39,.18); color: #fff; }
.monitoring-view-option.is-action:hover { background: var(--ig-blue-700); color: #fff; transform: translateY(-1px); }
.dashboard-stats { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 1.35rem; }
.dashboard-stat { align-items: center; background: #fff; border: 1px solid #dbe4eb; border-radius: 14px; display: flex; gap: 1rem; min-height: 104px; padding: 1.15rem 1.3rem; }
.dashboard-stat-icon { align-items: center; background: #e5f0f7; border-radius: 12px; color: #215d83; display: flex; flex: 0 0 48px; height: 48px; justify-content: center; }
.dashboard-stat small, .dashboard-stat strong, .dashboard-stat span { display: block; }
.dashboard-stat small { color: #788b98; font-size: .67rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.dashboard-stat strong { color: #102b40; font-size: 1.45rem; line-height: 1.2; margin-top: .15rem; }
.dashboard-stat span { color: #718391; font-size: .7rem; margin-top: .1rem; }
.device-workspace { background: #fff; border: 1px solid #dbe4eb; border-radius: 18px; box-shadow: 0 14px 35px rgba(7,24,39,.06); overflow: hidden; }
.device-workspace-toolbar { align-items: center; border-bottom: 1px solid #e3e9ee; display: flex; gap: 1rem; justify-content: space-between; padding: 1.2rem 1.35rem; }
.device-workspace-title strong { color: #17334a; display: block; font-size: .94rem; }
.device-workspace-title span { color: #7a8d9a; display: block; font-size: .72rem; margin-top: .15rem; }
.device-filters { align-items: center; display: flex; gap: .75rem; }
.device-search { position: relative; }
.device-search i, .device-search svg { color: #7d909d; left: .85rem; position: absolute; top: 50%; transform: translateY(-50%); }
.device-search input { background: #f4f7f9; border: 1px solid #dbe4ea; border-radius: 9px; font-size: .8rem; height: 40px; min-width: 230px; padding: .5rem .8rem .5rem 2.35rem; }
.site-selector { align-items: center; background: #f4f7f9; border: 1px solid #dbe4ea; border-radius: 9px; display: flex; margin: 0; overflow: hidden; }
.site-selector label { align-items: center; color: #4b6678; display: flex; font-size: .68rem; font-weight: 800; gap: .4rem; letter-spacing: .04em; padding: 0 .8rem; text-transform: uppercase; white-space: nowrap; }
.site-selector select { background-color: #fff; border: 0; border-left: 1px solid #dbe4ea; border-radius: 0; font-size: .8rem; min-height: 40px; min-width: 220px; }
.site-selector select:focus { box-shadow: inset 0 0 0 2px rgba(47,111,159,.2); }
.tree-dashboard-heading { align-items: flex-end; display: flex; gap: 2rem; justify-content: space-between; margin: 1.5rem 0 1.6rem; }
.tree-dashboard-heading h1 { align-items: center; color: var(--ig-navy-950); display: flex; font-size: clamp(1.55rem, 2.6vw, 2.25rem); font-weight: 750; gap: .7rem; letter-spacing: -.03em; margin: 0; }
.tree-dashboard-heading h1 i, .tree-dashboard-heading h1 svg { color: var(--ig-blue-700); font-size: .9em; }
.tree-dashboard-heading p { color: var(--ig-slate-500); font-size: .88rem; margin: .4rem 0 0; }
.tree-cache-note { color: var(--ig-slate-500); font-size: .72rem; margin-top: .55rem; }
.has-app-shell .custom-container { margin-left: auto; margin-right: auto; max-width: 1500px; padding: 0 clamp(1.5rem, 3vw, 3.25rem) 3rem; width: 100%; }
.has-app-shell .tree-card { border: 1px solid #dbe4eb; border-radius: 14px; box-shadow: 0 8px 24px rgba(7,24,39,.055); }
.has-app-shell .site-header-toggle { min-height: 70px; padding: 1rem 1.2rem !important; }
.has-app-shell .site-header-toggle:hover { background: #f6f9fb !important; }
.has-app-shell .site-header-toggle .folder-icon { color: var(--ig-blue-700) !important; }
.has-app-shell .site-header-toggle .badge { background: var(--ig-blue-100) !important; border-color: #c5d9e7 !important; color: var(--ig-blue-700) !important; }
.has-app-shell .device-table thead th { background: #edf3f7; border-bottom: 1px solid #d5e0e7; color: #4d6677; font-size: .68rem; letter-spacing: .055em; padding-bottom: .85rem !important; padding-top: .85rem !important; }
.has-app-shell .device-table tbody td { border-color: #e8edf1; }
.tree-summary-grid { display: grid; gap: .8rem; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 1.25rem; }
.tree-summary-grid article { align-items: center; background: #fff; border: 1px solid #d8e3e9; border-radius: 12px; display: flex; gap: .75rem; min-height: 78px; padding: .9rem 1rem; }
.tree-summary-grid article > span { align-items: center; background: #e5f0f6; border-radius: 9px; color: #28678e; display: flex; flex: 0 0 39px; height: 39px; justify-content: center; }
.tree-summary-grid small, .tree-summary-grid strong { display: block; }
.tree-summary-grid small { color: #748895; font-size: .62rem; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; }
.tree-summary-grid strong { color: #15344a; font-size: 1.25rem; line-height: 1.2; margin-top: .1rem; }
.tree-summary-grid .tree-summary-alert > span { background: #e8f3ee; color: #24734f; }
.tree-client-title { align-items: center; display: flex; gap: .75rem; min-width: 0; }
.tree-client-icon { align-items: center; background: #e3eef5; border-radius: 9px; color: #28678e; display: flex; flex: 0 0 39px; height: 39px; justify-content: center; }
.tree-client-title > span:nth-child(2) { min-width: 0; }
.tree-client-title strong, .tree-client-title small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tree-client-title strong { color: #17364c; font-size: .93rem; }
.tree-client-title small { color: #80919c; font-size: .65rem; margin-top: .1rem; }
.tree-device-count { background: #e8f1f6; border: 1px solid #c9dce7; border-radius: 999px; color: #34647f; font-size: .65rem; font-weight: 750; margin-left: .35rem; padding: .3rem .6rem; white-space: nowrap; }
.has-app-shell .tree-card { overflow: hidden; }
.has-app-shell .tree-card .table-responsive { background: #fff; }
.has-app-shell .device-table tbody tr { transition: background-color .15s ease; }
.has-app-shell .device-table tbody tr:hover { background: #f5f9fb; }
.has-app-shell .device-table .clickable-cell { cursor: pointer; }
.tree-status-badge { border-radius: 999px; display: inline-block; font-size: .66rem !important; font-weight: 750; min-width: 82px; padding: .35rem .6rem; }
.tree-status-badge.text-success { background: #e7f4ed; color: #24734f !important; }
.tree-status-badge.text-danger { background: #faeaea; color: #a53b3b !important; }
.tree-status-badge.text-warning { background: #fff3df; color: #94601c !important; }
.tree-card .col-actions { min-width: 132px !important; width: 132px !important; }
.tree-card .col-actions > .d-flex { gap: .3rem !important; }
.tree-card .col-actions .btn { border-radius: 6px !important; font-size: .66rem; gap: .25rem; min-height: 30px; padding: .25rem .48rem !important; white-space: nowrap; }
.tree-card .col-actions .btn svg, .tree-card .col-actions .btn i { font-size: .62rem; }

/* Flujo guiado de calibración pH */
.calibration-page { max-width: 1380px !important; }
.calibration-device-card { align-items: center; background: #fff; border: 1px solid #d9e4ea; border-radius: 13px; display: flex; gap: .8rem; min-width: 285px; padding: .8rem 1rem; }
.calibration-device-card > span { align-items: center; background: #e5f0f6; border-radius: 9px; color: #28688f; display: flex; flex: 0 0 39px; height: 39px; justify-content: center; }
.calibration-device-card small, .calibration-device-card strong, .calibration-device-card em { display: block; }
.calibration-device-card small { color: #81939f; font-size: .61rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.calibration-device-card strong { color: #18364c; font-size: .8rem; margin-top: .08rem; max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calibration-device-card em { color: #708591; font-size: .63rem; font-style: normal; margin-top: .08rem; }
.calibration-stepper { background: #fff; border: 1px solid #d9e4ea; border-radius: 13px; display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 1.25rem; overflow: hidden; padding: .35rem; }
.calibration-stepper > div { align-items: center; color: #83939e; display: flex; gap: .55rem; min-height: 49px; padding: .55rem .75rem; position: relative; }
.calibration-stepper > div:not(:last-child)::after { background: #dce5ea; content: ''; height: 24px; position: absolute; right: 0; width: 1px; }
.calibration-stepper span { align-items: center; background: #e8edf0; border-radius: 50%; display: flex; flex: 0 0 27px; font-size: .7rem; font-weight: 800; height: 27px; justify-content: center; }
.calibration-stepper strong { font-size: .69rem; font-weight: 750; }
.calibration-stepper .is-current { background: #edf5f9; color: #194e70; }
.calibration-stepper .is-current span { background: #246b96; color: #fff; }
.calibration-stepper .is-complete { color: #39745b; }
.calibration-stepper .is-complete span { background: #dcefe6; color: #24734f; }
.calibration-workspace { border: 1px solid #d8e3e9 !important; border-radius: 15px !important; box-shadow: 0 14px 34px rgba(7,24,39,.07) !important; overflow: hidden; }
.calibration-workspace-header { align-items: center; background: #102d43 !important; color: #fff !important; display: flex; justify-content: space-between; padding: .85rem 1rem !important; }
.calibration-workspace-header > div { align-items: center; display: flex; gap: .7rem; }
.calibration-workspace-header > div > span { align-items: center; background: rgba(255,255,255,.1); border-radius: 8px; display: flex; height: 35px; justify-content: center; width: 35px; }
.calibration-workspace-header h2, .calibration-workspace-header p { margin: 0; }
.calibration-workspace-header h2 { color: #fff; font-size: .86rem; font-weight: 760; }
.calibration-workspace-header p { color: #9fb5c3; font-size: .65rem; margin-top: .08rem; }
.calibration-step-label { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; color: #dce7ed; font-size: .63rem; font-weight: 750; padding: .35rem .6rem; }
.calibration-message-column { min-height: 260px; }
.calibration-instruction, .calibration-note { border: 1px solid #dbe5eb; border-radius: 12px; flex-direction: column; padding: 2.3rem 1.2rem 1.2rem; position: relative; }
.calibration-instruction { background: #edf6fa; border-color: #c8deea; color: #1d536f; }
.calibration-note { background: #f7f9fa; color: #5e7482; }
.calibration-panel-label { color: #78909d; font-size: .59rem; font-weight: 850; left: 1rem; letter-spacing: .1em; position: absolute; top: .8rem; }
.calibration-gauge-column { position: relative; }
.calibration-gauge-column > .calibration-panel-label { left: 50%; position: absolute; top: .25rem; transform: translateX(-50%); white-space: nowrap; }
.calibration-gauge-shell { align-items: center; background: radial-gradient(circle, #fff 35%, #f4f7f9 100%); border: 1px solid #dce5ea; border-radius: 50%; display: flex; height: 270px; justify-content: center; margin: .8rem auto 0; width: 270px; }
.ph-gauge-selector { background: #e5ebef; border-radius: 8px; display: inline-flex; margin: 1.4rem auto .8rem; padding: 3px; }
.ph-gauge-selector button { background: transparent; border: 0; border-radius: 6px; color: #708491; font-size: .62rem; font-weight: 750; min-height: 29px; padding: .3rem .65rem; }
.ph-gauge-selector button.is-current { background: #fff; box-shadow: 0 2px 7px rgba(7,24,39,.1); color: #173c55; }
.ph-horizontal-gauge { background: #f8fafb; border: 1px solid #d9e4ea; border-radius: 13px; margin: 0 auto; max-width: 360px; min-height: 225px; padding: 1.1rem 1rem 1rem; }
.ph-horizontal-gauge[hidden] { display: none !important; }
.ph-reading-summary { align-items: baseline; display: flex; flex-wrap: wrap; justify-content: center; margin-bottom: 1.25rem; }
.ph-reading-summary strong { color: #14364d; font-size: 2.6rem; font-variant-numeric: tabular-nums; font-weight: 780; letter-spacing: -.045em; line-height: 1; }
.ph-reading-summary > span { color: #6f8492; font-size: .8rem; font-weight: 750; margin-left: .35rem; }
.ph-reading-summary em { color: #708490; display: block; flex-basis: 100%; font-size: .68rem; font-style: normal; font-weight: 750; margin-top: .35rem; }
.ph-reading-summary em.is-acid { color: #a23f47; }
.ph-reading-summary em.is-neutral { color: #27704e; }
.ph-reading-summary em.is-alkaline { color: #28668c; }
.ph-scale-wrap { padding: 0 .35rem; position: relative; }
.ph-scale-zones { display: grid; font-size: .55rem; font-weight: 750; grid-template-columns: 48.5% 3% 48.5%; margin-bottom: .35rem; }
.ph-scale-zones span:first-child { color: #a34a52; text-align: left; }
.ph-scale-zones span:nth-child(2) { color: #28734f; text-align: center; }
.ph-scale-zones span:last-child { color: #326b91; text-align: right; }
.ph-scale-track { background: linear-gradient(90deg, #cf7378 0%, #e7b4a1 38%, #74b78f 49%, #74b78f 51%, #84b5d1 62%, #4f82a8 100%); border: 2px solid #fff; border-radius: 999px; box-shadow: 0 0 0 1px #cbd8df, inset 0 1px 2px rgba(7,24,39,.12); height: 19px; position: relative; }
.ph-scale-marker { bottom: -8px; position: absolute; transform: translateX(-50%); transition: left .3s ease; }
.ph-scale-marker::before { border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 8px solid #102d43; content: ''; left: 50%; position: absolute; top: -8px; transform: translateX(-50%); }
.ph-scale-marker i { background: #102d43; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 2px 6px rgba(7,24,39,.35); display: block; height: 15px; width: 15px; }
.ph-scale-marker[hidden] { display: none; }
.ph-scale-ticks { color: #718591; display: flex; font-size: .56rem; font-variant-numeric: tabular-nums; justify-content: space-between; margin-top: .75rem; }
.ph-buffer-references { height: 24px; margin-top: .2rem; position: relative; }
.ph-buffer-references span { color: #82939e; font-size: .5rem; position: absolute; transform: translateX(-50%); white-space: nowrap; }
.ph-classic-view { left: -9999px; position: absolute; visibility: hidden; }
.ph-classic-view.is-visible { left: auto; position: static; visibility: visible; }
.calibration-page .progress-container-industrial { background: #edf2f5; border: 1px solid #d7e2e8; box-shadow: none; }
.calibration-page .progress-bar-industrial { background: #286b95; }
.calibration-buffer-btn { align-items: center; background: #f8fafb !important; border: 1px solid #d9e3e9 !important; color: #284a61 !important; display: flex; gap: .8rem; justify-content: flex-start; min-height: 66px; padding: .75rem 1rem; text-align: left; width: 100%; }
.calibration-buffer-btn i, .calibration-buffer-btn svg { background: #e5eef3; border-radius: 9px; box-sizing: content-box; flex: 0 0 auto; height: 18px; padding: .55rem; width: 18px; }
.calibration-buffer-btn span, .calibration-buffer-btn small { display: block; }
.calibration-buffer-btn span { font-size: .82rem; font-weight: 780; }
.calibration-buffer-btn small { color: #82939e; font-size: .61rem; font-weight: 700; margin-bottom: .08rem; }
.calibration-buffer-btn.is-acid i, .calibration-buffer-btn.is-acid svg { background: #f7e7e7; color: #a94343; }
.calibration-buffer-btn.is-neutral i, .calibration-buffer-btn.is-neutral svg { background: #e3f1e9; color: #26724e; }
.calibration-buffer-btn.is-alkaline i, .calibration-buffer-btn.is-alkaline svg { background: #e3eef6; color: #28688f; }
.calibration-buffer-btn:hover:not(:disabled) { background: #fff !important; border-color: #8eb2c8 !important; box-shadow: 0 9px 20px rgba(20,65,92,.1); }
.calibration-process-btn { min-width: 190px; }
.calibration-process-btn { min-width: 190px; }
.calibration-action-bar { align-items: center; background: #fff; border: 1px solid #d9e3e9; border-radius: 12px; display: flex; justify-content: space-between; padding: .7rem; }
.calibration-action-bar form { margin: 0; }

/* Módulos de bomba y muestreo */
.pump-page { max-width: 1380px !important; }
.pump-device-chip { align-items: center; background: #fff; border: 1px solid #d9e4ea; border-radius: 12px; display: flex; gap: .7rem; min-width: 260px; padding: .72rem .9rem; }
.pump-device-chip > i, .pump-device-chip > svg { background: #e5f0f6; border-radius: 8px; box-sizing: content-box; color: #28678e; flex: 0 0 auto; height: 17px; padding: .55rem; width: 17px; }
.pump-device-chip small, .pump-device-chip strong { display: block; }
.pump-device-chip small { color: #82939e; font-size: .59rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.pump-device-chip strong { color: #18364c; font-size: .76rem; margin-top: .08rem; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pump-module-nav { background: #fff; border: 1px solid #d8e3e9; border-radius: 12px; display: grid; gap: .35rem; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 1.25rem; padding: .35rem; }
.pump-module-nav a { align-items: center; border-radius: 8px; color: #617987; display: flex; font-size: .72rem; font-weight: 750; gap: .5rem; justify-content: center; min-height: 42px; padding: .5rem .7rem; text-decoration: none; }
.pump-module-nav a:hover { background: #f0f5f8; color: #1d506f; }
.pump-module-nav a.is-current { background: #102d43; box-shadow: 0 5px 13px rgba(7,24,39,.16); color: #fff; }
.pump-page .pump-section-header { align-items: center; background: #102d43 !important; border-bottom: 0 !important; color: #fff !important; display: flex; min-height: 55px; padding: .8rem 1rem !important; }
.pump-page .pump-section-header h5 { color: #fff; font-size: .82rem; font-weight: 760; letter-spacing: .01em; }
.pump-page .pump-status-card, .pump-page .pump-command-card, .pump-page .pump-form-card, .pump-page .pump-program-list-card, .pump-page .pump-program-form-card { border: 1px solid #d9e3e9 !important; border-radius: 13px !important; box-shadow: 0 10px 27px rgba(7,24,39,.055) !important; overflow: hidden; }
.pump-device-name { color: #637987; font-size: .72rem; font-weight: 750; letter-spacing: .04em; margin: 0 0 .8rem; text-transform: uppercase; }
.pump-device-name span { color: #17364d !important; font-size: .92rem; letter-spacing: 0; text-transform: none; }
.pump-status-message { background: #edf6fa; border: 1px solid #c9dee9; border-radius: 10px; color: #285b78; padding: 1rem; }
.pump-status-message h5 { color: #69818f; font-size: .61rem; font-weight: 850; letter-spacing: .09em; margin-bottom: .35rem; text-transform: uppercase; }
.pump-status-message p { color: #183b52; font-size: .9rem !important; font-weight: 720; }
.pump-command-card .card-body { padding: 1.2rem !important; }
.pump-page .pump-action-grid .btn-neumorphism { align-items: center; background: #f7fafb; border: 1px solid #d9e3e9; border-radius: 10px; box-shadow: none; color: #355468; display: flex; font-size: .74rem; font-weight: 740; gap: .65rem; justify-content: flex-start; min-height: 57px; padding: .7rem .85rem; text-align: left; width: 100%; }
.pump-page .pump-action-grid .btn-neumorphism i, .pump-page .pump-action-grid .btn-neumorphism svg { background: #e3eef4; border-radius: 8px; box-sizing: content-box; color: #28678e; flex: 0 0 auto; font-size: .84rem; height: 16px; margin: 0 !important; padding: .5rem; width: 16px; }
.pump-page .pump-action-grid .btn-neumorphism:hover:not(:disabled):not(.disabled) { background: #fff; border-color: #9bbbd0; box-shadow: 0 8px 18px rgba(20,65,92,.1); color: #173b54; transform: translateY(-2px); }
.pump-page .pump-action-grid .btn-neumorphism:disabled, .pump-page .pump-action-grid .btn-neumorphism.disabled { background: #f1f3f5; opacity: .55; }
.pump-form-card .card-body { padding: 1.2rem !important; }
.pump-form-card .form-label, .pump-program-form-card .form-label { color: #5e7584; font-size: .68rem !important; letter-spacing: .02em; margin-bottom: .35rem; }
.pump-form-card .form-switch { background: #f3f7f9; border: 1px solid #dce5ea; border-radius: 9px; min-height: 44px; padding: .65rem .8rem .55rem 2.8rem; }
.pump-list-device { background: #f7fafb; border-bottom: 1px solid #e0e8ed; }
.pump-list-device h5 { color: #708491 !important; font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; }
.pump-list-device h5 span { color: #17364d !important; font-size: .84rem; letter-spacing: 0; text-transform: none; }
.pump-program-list-card .table-programlist thead th { background: #edf3f7; border-bottom: 1px solid #d4e0e7; color: #4f6878; font-size: .61rem; letter-spacing: .055em; padding-bottom: .75rem; padding-top: .75rem; text-transform: uppercase; }
.pump-program-list-card .table-programlist tbody td { border-color: #e6ecef; font-size: .72rem; vertical-align: middle; }
.pump-program-list-card .table-programlist tbody tr:hover td { background: #f7fafb; }
.pump-program-status { border-radius: 999px; display: inline-block; font-size: .58rem; font-weight: 800; min-width: 72px; padding: .3rem .5rem; }
.pump-program-status.text-primary { background: #e5eff6; color: #28678e !important; }
.pump-program-status.text-success { background: #e5f3eb; color: #26714d !important; }
.pump-program-status.text-secondary { background: #eceff1; color: #687c88 !important; }
.pump-program-status.text-danger { background: #f8e7e7; color: #a23d3d !important; }
.pump-program-list-card .program-btn, .pump-program-list-card .cancel-btn { border-radius: 6px !important; font-size: .58rem; min-height: 29px; padding: .22rem .42rem !important; }
.pump-program-list-card .no-wrap-actions .d-flex { gap: .3rem; }
.pump-program-form-card .card-body { padding: 1.25rem !important; }
.sampling-mode-selector { background: #f5f8fa; border: 1px solid #dae4ea !important; border-radius: 11px !important; display: grid; gap: .65rem; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 1rem !important; }
.sampling-mode-selector legend { color: #4f6878 !important; font-size: .64rem !important; grid-column: 1 / -1; letter-spacing: .055em; text-transform: uppercase; }
.sampling-mode-selector .form-check { background: #fff; border: 1px solid #dbe4ea; border-radius: 9px; margin: 0 !important; min-height: 52px; padding: .85rem .75rem .65rem 2.45rem; }
.sampling-mode-selector .form-check:has(.form-check-input:checked) { background: #eaf3f8; border-color: #9ebfd3; }
.sampling-mode-selector .form-check-label { color: #3f5c6f; font-size: .72rem; font-weight: 700; }
.punctual-sampling-panel { background: #f0f6f9 !important; border: 1px solid #cbdfe9 !important; border-radius: 11px !important; box-shadow: none !important; }
.punctual-sampling-panel .form-label { color: #396780 !important; }
.pump-form-action-bar { align-items: center; background: #fff; border: 1px solid #d9e3e9; border-radius: 12px; display: flex; justify-content: space-between; padding: .75rem; }
.pump-form-action-bar > div { display: flex; }

/* Azul interactivo unificado: coincide con los encabezados */
.has-app-shell main .text-primary,
.has-app-shell main input.text-primary,
.has-app-shell main select.text-primary,
.has-app-shell main a:not(.btn) {
    color: var(--ig-navy-900) !important;
}

.has-app-shell main .btn-neumorphism:not([href="reset.php"]):not([name="StopDevice"]),
.has-app-shell main .btn-neumorphism:not([href="reset.php"]):not([name="StopDevice"]) i,
.has-app-shell main .btn-neumorphism:not([href="reset.php"]):not([name="StopDevice"]) svg,
.has-app-shell main .btn-modern-primary {
    color: var(--ig-navy-900) !important;
}

.has-app-shell main .btn-outline-primary {
    border-color: var(--ig-navy-900) !important;
    color: var(--ig-navy-900) !important;
}

.has-app-shell main .btn-outline-primary:hover {
    background: var(--ig-navy-900) !important;
    border-color: var(--ig-navy-900) !important;
    color: #fff !important;
}

.has-app-shell main .btn-neumorphism-flat {
    background: var(--ig-navy-900) !important;
    border-color: var(--ig-navy-900) !important;
    color: #fff !important;
}

.has-app-shell main :is(.card-header-industrial, .pump-section-header, .calibration-workspace-header) .text-primary {
    color: #fff !important;
}

/* Todo control con fondo azul utiliza texto e iconos blancos */
.has-app-shell main .btn.btn-primary,
.has-app-shell main .btn.btn-primary *,
.has-app-shell main .monitoring-view-option.is-action,
.has-app-shell main .monitoring-view-option.is-action *,
.has-app-shell main .pump-module-nav a.is-current,
.has-app-shell main .pump-module-nav a.is-current *,
.has-app-shell main .device-module-nav .btn-modern-primary,
.has-app-shell main .device-module-nav .btn-modern-primary * {
    color: #fff !important;
}

/* Configuración y escaneo Wi-Fi */
.wifi-setup-page { max-width: 1280px !important; }
.wifi-device-chip { align-items: center; background: #fff; border: 1px solid #d9e4ea; border-radius: 12px; display: flex; gap: .7rem; min-width: 275px; padding: .75rem .9rem; }
.wifi-device-chip > i, .wifi-device-chip > svg { background: #e4eff5; border-radius: 8px; box-sizing: content-box; color: #28678e; height: 17px; padding: .55rem; width: 17px; }
.wifi-device-chip small, .wifi-device-chip strong, .wifi-device-chip em { display: block; }
.wifi-device-chip small { color: #82939e; font-size: .59rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.wifi-device-chip strong { color: #18364c; font-size: .76rem; margin-top: .08rem; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wifi-device-chip em { color: #718590; font-size: .61rem; font-style: normal; margin-top: .08rem; }
.wifi-setup-card { border: 1px solid #d8e3e9 !important; border-radius: 14px !important; box-shadow: 0 13px 31px rgba(7,24,39,.065) !important; overflow: hidden; }
.wifi-section-header { align-items: center; background: #102d43 !important; color: #fff !important; display: flex; justify-content: space-between; min-height: 66px; padding: .75rem 1rem !important; }
.wifi-section-header > div { align-items: center; display: flex; gap: .7rem; }
.wifi-section-header > div > span { align-items: center; background: rgba(255,255,255,.1); border-radius: 8px; display: flex; height: 36px; justify-content: center; width: 36px; }
.wifi-section-header h2, .wifi-section-header p { margin: 0; }
.wifi-section-header h2 { color: #fff; font-size: .84rem; font-weight: 760; }
.wifi-section-header p { color: #9fb4c2; font-size: .64rem; margin-top: .1rem; }
.wifi-rescan-button { background: rgba(255,255,255,.08) !important; border: 1px solid rgba(255,255,255,.17) !important; color: #fff !important; font-size: .66rem; gap: .4rem; min-height: 36px; }
.wifi-rescan-button:hover { background: #fff !important; color: #102d43 !important; }
.wifi-setup-card .card-body { padding: 1.3rem !important; }
.wifi-status-message { align-items: flex-start; border: 1px solid; border-radius: 10px; display: flex; gap: .65rem; margin-bottom: 1.25rem; padding: .8rem .9rem; }
.wifi-status-message p { font-size: .72rem; font-weight: 650; line-height: 1.5; margin: 0; }
.wifi-status-message i, .wifi-status-message svg { flex: 0 0 auto; margin-top: .18rem; }
.wifi-status-message.is-info { background: #edf6fa; border-color: #c7dde9; color: #255a77; }
.wifi-status-message.is-error { background: #fff0f0; border-color: #edcaca; color: #9c3737; }
.wifi-credentials-grid .form-label { color: #566f7f; font-size: .68rem; letter-spacing: .025em; margin-bottom: .4rem; }
.wifi-credentials-grid .form-control, .wifi-credentials-grid .form-select { min-height: 48px; }
.wifi-password-field { position: relative; }
.wifi-password-field .form-control { padding-right: 3rem; }
.wifi-password-field button { align-items: center; background: transparent; border: 0; bottom: 0; color: #607887; display: flex; justify-content: center; position: absolute; right: 0; top: 0; width: 46px; }
.wifi-password-field button:hover { color: #102d43; }
.wifi-security-note { align-items: center; background: #f5f8fa; border: 1px solid #dce5ea; border-radius: 9px; display: flex; gap: .7rem; padding: .75rem .85rem; }
.wifi-security-note > i, .wifi-security-note > svg { color: #2a698f; flex: 0 0 auto; }
.wifi-security-note strong, .wifi-security-note small { display: block; }
.wifi-security-note strong { color: #37566a; font-size: .68rem; }
.wifi-security-note small { color: #7b8e9a; font-size: .62rem; margin-top: .1rem; }
.wifi-action-bar { align-items: center; background: #fff; border: 1px solid #d9e3e9; border-radius: 12px; display: flex; justify-content: space-between; padding: .75rem; }

/* SIM, módem y llamada de prueba */
.phone-page { max-width: 1280px !important; }
.phone-device-chip { align-items: center; background: #fff; border: 1px solid #d9e4ea; border-radius: 12px; display: flex; gap: .7rem; min-width: 275px; padding: .75rem .9rem; }
.phone-device-chip > i, .phone-device-chip > svg { background: #e4eff5; border-radius: 8px; box-sizing: content-box; color: #28678e; height: 17px; padding: .55rem; width: 17px; }
.phone-device-chip small, .phone-device-chip strong, .phone-device-chip em { display: block; }
.phone-device-chip small { color: #82939e; font-size: .59rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.phone-device-chip strong { color: #18364c; font-size: .76rem; margin-top: .08rem; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.phone-device-chip em { color: #718590; font-size: .61rem; font-style: normal; margin-top: .08rem; }
.phone-feedback { align-items: center; border: 1px solid; border-radius: 11px; display: flex; font-size: .72rem; font-weight: 680; gap: .65rem; margin-bottom: 1.25rem; padding: .8rem .95rem; }
.phone-feedback i, .phone-feedback svg { flex: 0 0 auto; }
.phone-feedback.is-success { background: #eaf6f0; border-color: #bfdfcf; color: #246a4c; }
.phone-feedback.is-warning { background: #fff7e8; border-color: #ead7ad; color: #8a5c1b; }
.phone-feedback.is-error { background: #fff0f0; border-color: #edcaca; color: #9c3737; }
.phone-panel { border: 1px solid #d8e3e9 !important; border-radius: 14px !important; box-shadow: 0 13px 31px rgba(7,24,39,.065) !important; overflow: hidden; }
.phone-panel-header { align-items: center; background: #102d43 !important; color: #fff !important; display: flex; gap: .7rem; min-height: 68px; padding: .8rem 1rem !important; }
.phone-panel-header > span { align-items: center; background: rgba(255,255,255,.1); border-radius: 8px; display: flex; flex: 0 0 37px; height: 37px; justify-content: center; }
.phone-panel-header h2, .phone-panel-header p { margin: 0; }
.phone-panel-header h2 { color: #fff; font-size: .84rem; font-weight: 760; }
.phone-panel-header p { color: #a9bdca; font-size: .64rem; margin-top: .1rem; }
.phone-panel .card-body { padding: 1.25rem !important; }
.phone-identifier-list { display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 1rem; }
.phone-identifier-row { align-items: center; background: #f4f7f9; border: 1px solid #dce5ea; border-radius: 11px; display: flex; gap: .8rem; min-height: 86px; padding: .85rem; }
.phone-identifier-icon { align-items: center; background: #e1edf4; border-radius: 9px; color: #27668e; display: flex; flex: 0 0 38px; height: 38px; justify-content: center; }
.phone-identifier-copy { min-width: 0; }
.phone-identifier-copy small { color: #758a98; display: block; font-size: .59rem; font-weight: 820; letter-spacing: .065em; }
.phone-identifier-copy strong { color: #17384f; display: block; font-family: Consolas, "Courier New", monospace; font-size: clamp(.8rem, 1.25vw, 1rem); margin-top: .28rem; overflow-wrap: anywhere; }
.phone-query-button { min-height: 44px; width: 100%; }
.phone-call-body { display: flex; flex-direction: column; justify-content: center; }
.phone-call-body .form-label { color: #566f7f; font-size: .68rem; letter-spacing: .025em; margin-bottom: .4rem; }
.phone-number-field { position: relative; }
.phone-number-field > span { align-items: center; bottom: 0; color: #6d8391; display: flex; justify-content: center; left: 0; pointer-events: none; position: absolute; top: 0; width: 42px; z-index: 2; }
.phone-number-field .form-control { font-family: Consolas, "Courier New", monospace; font-size: .9rem; min-height: 48px; padding-left: 2.6rem; }
.phone-field-help { color: #82939e; font-size: .62rem; margin: .38rem 0 .9rem; }
.phone-call-note { align-items: flex-start; background: #edf5f9; border: 1px solid #d1e1ea; border-radius: 9px; color: #496b80; display: flex; font-size: .65rem; gap: .55rem; line-height: 1.45; margin-bottom: 1rem; padding: .7rem .75rem; }
.phone-call-note i, .phone-call-note svg { color: #2b6e96; flex: 0 0 auto; margin-top: .12rem; }
.phone-action-bar { align-items: center; background: #fff; border: 1px solid #d9e3e9; border-radius: 12px; display: flex; margin-top: 1rem; padding: .75rem; }

/* Monitoreo en tiempo real */
.realtime-page, .graph-page { max-width: 1380px !important; }
.realtime-device-chip, .graph-device-chip { align-items: center; background: #fff; border: 1px solid #d9e4ea; border-radius: 12px; display: flex; gap: .7rem; min-width: 280px; padding: .75rem .9rem; }
.realtime-device-chip > i, .realtime-device-chip > svg, .graph-device-chip > i, .graph-device-chip > svg { background: #e4eff5; border-radius: 8px; box-sizing: content-box; color: #28678e; height: 17px; padding: .55rem; width: 17px; }
.realtime-device-chip small, .realtime-device-chip strong, .realtime-device-chip em, .graph-device-chip small, .graph-device-chip strong, .graph-device-chip em { display: block; }
.realtime-device-chip small, .graph-device-chip small { color: #82939e; font-size: .59rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.realtime-device-chip strong, .graph-device-chip strong { color: #18364c; font-size: .76rem; margin-top: .08rem; max-width: 225px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.realtime-device-chip em, .graph-device-chip em { color: #718590; font-size: .61rem; font-style: normal; margin-top: .08rem; }
.realtime-panel, .graph-filter-panel, .graph-chart-panel { border: 1px solid #d8e3e9 !important; border-radius: 14px !important; box-shadow: 0 13px 31px rgba(7,24,39,.065) !important; overflow: hidden; }
.realtime-panel-header, .graph-panel-header { align-items: center; background: #102d43 !important; color: #fff !important; display: flex; gap: .7rem; min-height: 68px; padding: .8rem 1rem !important; }
.realtime-panel-header > div:first-child { align-items: center; display: flex; gap: .7rem; }
.realtime-panel-header > div:first-child > span, .graph-panel-header > span { align-items: center; background: rgba(255,255,255,.1); border-radius: 8px; display: flex; flex: 0 0 37px; height: 37px; justify-content: center; }
.realtime-panel-header h2, .realtime-panel-header p, .graph-panel-header h2, .graph-panel-header p { margin: 0; }
.realtime-panel-header h2, .graph-panel-header h2 { color: #fff; font-size: .84rem; font-weight: 760; }
.realtime-panel-header p, .graph-panel-header p { color: #a9bdca; font-size: .64rem; margin-top: .1rem; }
.realtime-live-badge { align-items: center; background: rgba(58,181,123,.14); border: 1px solid rgba(92,211,155,.25); border-radius: 999px; color: #8fe1b9; display: inline-flex; font-size: .59rem; font-weight: 820; gap: .4rem; margin-left: auto; padding: .38rem .6rem; }
.realtime-live-badge i, .realtime-live-badge svg { font-size: .42rem; }
.realtime-panel .card-body { padding: 1.25rem !important; }
.realtime-status-zone { align-items: center; display: flex; justify-content: center; min-height: 42px; }
.realtime-status-zone .progress { background: #e6edf1; border-radius: 999px; height: 6px; max-width: 430px; overflow: hidden; width: 100%; }
.realtime-status-zone .progress-bar { background: #2d789f; }
.realtime-reading-status { align-items: center; color: #2a688f !important; display: flex; font-size: .68rem !important; font-weight: 780; gap: .5rem; letter-spacing: .045em; text-transform: uppercase; }
.realtime-table-wrap { border: 1px solid #dde6eb; border-radius: 11px; overflow: hidden; }
.realtime-sensor-table { margin: 0; }
.realtime-sensor-table thead th { background: #eaf1f5; border: 0; color: #486779; font-size: .63rem; font-weight: 820; letter-spacing: .065em; padding: .78rem !important; text-transform: uppercase; }
.realtime-sensor-table tbody td { background: #fff; border-color: #e7edf0; color: #536b7a; font-size: .75rem; padding: .78rem !important; }
.realtime-sensor-table tbody tr:hover td { background: #f7fafb; }
.realtime-sensor-name { align-items: center; color: #244b64; display: inline-flex; font-weight: 720; gap: .6rem; }
.realtime-sensor-name i, .realtime-sensor-name svg { color: #4d86a8; }
.realtime-sensor-table .sensor-value { font-family: Consolas, "Courier New", monospace; font-size: .98rem; }
.realtime-action-bar, .graph-action-bar { align-items: center; background: #fff; border: 1px solid #d9e3e9; border-radius: 12px; display: flex; margin-top: 1rem; padding: .75rem; }

/* Gráficos históricos */
.graph-filter-panel .card-body, .graph-chart-panel .card-body { padding: 1.2rem !important; }
.graph-filter-form .form-label { color: #587181; font-size: .66rem; letter-spacing: .025em; margin-bottom: .38rem; }
.graph-filter-form .form-control, .graph-filter-form .form-select { min-height: 46px; }
.graph-sensor-title { color: #294a60; font-size: .72rem; font-weight: 780; margin: 0 0 .75rem; }
.graph-sensor-title small { color: #85959f; display: block; font-size: .61rem; font-weight: 500; margin-top: .12rem; }
.graph-sensor-switches .form-check { background: #f5f8fa; border: 1px solid #dce5ea; border-radius: 8px; margin: 0; min-height: 39px; padding: .55rem .65rem .48rem 2.6rem; }
.graph-sensor-switches .form-check-label { color: #486375; font-size: .66rem; font-weight: 680; }
.graph-page #kpi-container { --bs-gutter-x: .75rem; }
.graph-page .kpi-card-enhanced { background: #f8fafb; border: 1px solid #d8e3e9; border-left: 3px solid #2a6b92; border-radius: 10px; box-shadow: 0 5px 15px rgba(16,45,67,.055); padding: .8rem; }
.graph-page .kpi-tag { color: #234d68; font-size: .64rem; letter-spacing: .04em; margin-bottom: .65rem; padding-bottom: .55rem; }
.graph-page .kpi-label { color: #7b8d99; font-size: .62rem; }
.graph-page .kpi-value-std { color: #183b53; font-family: Consolas, "Courier New", monospace; font-size: .78rem; }
.graph-chart-panel #chart_div { min-height: 520px; }

/* Flujo de configuración: alarmas, transductores y Modbus */
.alarm-config-page, .master-alarm-page, .transducer-config-page, .modbus-config-page { max-width: 1420px !important; }
.alarm-config-card, .transducer-config-card, .master-client-card, .master-target-card, .master-alarm-table-card, .modbus-config-page .modbus-card { border: 1px solid #d8e3e9 !important; border-radius: 14px !important; box-shadow: 0 10px 26px rgba(7,24,39,.055) !important; overflow: hidden; }
.config-workflow-header { align-items: center; background: #102d43 !important; color: #fff !important; display: flex; gap: .7rem; min-height: 66px; padding: .78rem 1rem !important; }
.config-workflow-header > span { align-items: center; background: rgba(255,255,255,.1); border-radius: 8px; display: flex; flex: 0 0 37px; height: 37px; justify-content: center; }
.config-workflow-header h2, .config-workflow-header p { margin: 0; }
.config-workflow-header h2 { color: #fff; font-size: .84rem; font-weight: 760; }
.config-workflow-header p { color: #a9bdca; font-size: .64rem; margin-top: .1rem; }
.config-workflow-intro { background: #f3f7f9; border: 1px solid #dce5ea; border-radius: 9px; color: #587182; font-size: .68rem; line-height: 1.5; margin: 0 0 1rem; padding: .7rem .8rem; }
.config-workflow-table { border: 1px solid #dfe7ec; margin: 0; }
.config-workflow-table thead th { background: #e9f0f4 !important; border-color: #d8e2e8; color: #486678 !important; font-size: .61rem !important; font-weight: 820; letter-spacing: .045em; padding: .68rem .45rem !important; text-transform: uppercase; }
.config-workflow-table tbody td { background: #fff; border-color: #e5ebef; color: #526a79; padding: .55rem .45rem !important; }
.config-workflow-table tbody tr:hover td { background: #f8fafb; }
.config-workflow-table .form-control, .config-workflow-table .form-select { background-color: #f8fafb; border-color: #d7e1e7; min-height: 36px; }
.config-workflow-table .form-control:focus, .config-workflow-table .form-select:focus { background-color: #fff; }
.config-workflow-actions { align-items: center; background: #fff; border: 1px solid #d9e3e9; border-radius: 12px; display: flex; justify-content: space-between; padding: .75rem; }
.config-workflow-actions > div { display: flex; gap: .6rem; }
.master-alarm-chip { align-items: center; background: #fff; border: 1px solid #d9e4ea; border-radius: 12px; display: flex; gap: .7rem; min-width: 250px; padding: .75rem .9rem; }
.master-alarm-chip > i, .master-alarm-chip > svg { background: #e4eff5; border-radius: 8px; box-sizing: content-box; color: #28678e; height: 17px; padding: .55rem; width: 17px; }
.master-alarm-chip small, .master-alarm-chip strong, .master-alarm-chip em { display: block; }
.master-alarm-chip small { color: #82939e; font-size: .59rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.master-alarm-chip strong { color: #18364c; font-size: .76rem; margin-top: .08rem; }
.master-alarm-chip em { color: #718590; font-size: .61rem; font-style: normal; margin-top: .08rem; }
.master-client-card .card-body { padding: .85rem 1rem !important; }
.master-client-card .form-select { min-height: 45px; }
.master-target-card { background: #f7fafb; }
.master-target-card .card-body { padding: 1rem !important; }
.master-target-card h6 { color: #294e66 !important; }
.master-alarm-page .device-checkbox-card { background: #fff; border-color: #d6e1e7; border-radius: 9px; box-shadow: none; min-height: 56px; }
.master-alarm-page .device-checkbox-input:checked + .device-checkbox-card { background: #edf5f9; border-color: #75a5c1; box-shadow: 0 0 0 1px #75a5c1; }
.transducer-config-card .card-body { padding: 1.15rem !important; }
.transducer-config-card .alert-info { background: #edf5f9; border-color: #cfe1eb; color: #41677e; }
.modbus-context-note { align-items: flex-start; background: #edf5f9; border: 1px solid #cfdee7; border-radius: 10px; color: #496b80; display: flex; font-size: .68rem; gap: .6rem; line-height: 1.5; margin-bottom: 1rem; padding: .75rem .85rem; }
.modbus-context-note i, .modbus-context-note svg { color: #2a6c94; flex: 0 0 auto; margin-top: .14rem; }
.modbus-sensor-header { background: #f3f7f9 !important; border-bottom: 1px solid #dce5ea !important; color: #24485f !important; min-height: 58px; padding: .75rem 1rem !important; }
.modbus-sensor-header strong { color: #173b53 !important; font-size: .77rem; }
.modbus-sensor-header .text-muted { color: #6c8290 !important; font-size: .68rem; }
.modbus-config-page .modbus-card .card-body { padding: 1rem !important; }
.modbus-config-page .form-label { color: #587181; font-size: .64rem; margin-bottom: .35rem; }

/* Soporte, recursos y acciones remotas */
.device-logs-page, .downloads-page, .express-config-page, .reset-device-page { max-width: 1320px !important; }
.device-logs-card, .downloads-card, .express-setting-card, .reset-confirm-card { border: 1px solid #d8e3e9 !important; border-radius: 14px !important; box-shadow: 0 11px 28px rgba(7,24,39,.06) !important; overflow: hidden; }
.support-panel-header { align-items: center; background: #102d43 !important; color: #fff !important; display: flex; gap: .7rem; min-height: 66px; padding: .78rem 1rem !important; }
.support-panel-header > span { align-items: center; background: rgba(255,255,255,.1); border-radius: 8px; display: flex; flex: 0 0 37px; height: 37px; justify-content: center; }
.support-panel-header h2, .support-panel-header p { margin: 0; }
.support-panel-header h2 { color: #fff; font-size: .84rem; font-weight: 760; }
.support-panel-header p { color: #a9bdca; font-size: .64rem; margin-top: .1rem; }
.support-action-bar { align-items: center; background: #fff; border: 1px solid #d9e3e9; border-radius: 12px; display: flex; justify-content: space-between; margin-top: 1rem; padding: .75rem; }
.device-logs-card .card-body > .border-bottom { background: #f7fafb !important; }
.logs-counter { align-items: center; color: #567182; display: flex; gap: .65rem; }
.logs-counter > i, .logs-counter > svg { background: #e2edf4; border-radius: 8px; box-sizing: content-box; color: #28688f; padding: .5rem; }
.logs-counter small, .logs-counter strong { display: block; }
.logs-counter small { color: #8798a3; font-size: .58rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.logs-counter strong { color: #294b61; font-size: .7rem; margin-top: .08rem; }
.device-logs-page .search-container .input-group { border: 1px solid #d5e0e6; border-radius: 9px; overflow: hidden; }
.device-logs-page .search-container .input-group-text, .device-logs-page .search-container .form-control { background: #fff; border: 0; }
.device-logs-page .table-logs thead th { background: #e9f0f4; color: #486678; font-size: .61rem; font-weight: 820; letter-spacing: .055em; text-transform: uppercase; }
.device-logs-page .table-logs tbody td { border-color: #e6ecef; color: #526a79; font-size: .7rem; }
.downloads-summary-chip { align-items: center; background: #fff; border: 1px solid #d9e4ea; border-radius: 12px; display: flex; gap: .7rem; min-width: 255px; padding: .75rem .9rem; }
.downloads-summary-chip > i, .downloads-summary-chip > svg { background: #e4eff5; border-radius: 8px; box-sizing: content-box; color: #28678e; height: 17px; padding: .55rem; width: 17px; }
.downloads-summary-chip small, .downloads-summary-chip strong, .downloads-summary-chip em { display: block; }
.downloads-summary-chip small { color: #82939e; font-size: .59rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.downloads-summary-chip strong { color: #18364c; font-size: .76rem; margin-top: .08rem; }
.downloads-summary-chip em { color: #718590; font-size: .61rem; font-style: normal; margin-top: .08rem; }
.downloads-card .card-body { padding: 1.1rem !important; }
.download-resource-grid { display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.download-resource { align-items: center; background: #f5f8fa; border: 1px solid #d9e3e9; border-radius: 10px; color: inherit; display: flex; gap: .75rem; min-height: 72px; padding: .75rem; text-decoration: none; transition: .18s ease; }
.download-resource:hover { background: #fff; border-color: #8eb2c8; box-shadow: 0 8px 20px rgba(18,58,84,.09); color: inherit; transform: translateY(-2px); }
.download-resource > span { align-items: center; background: #e2edf4; border-radius: 8px; color: #28678f; display: flex; flex: 0 0 38px; height: 38px; justify-content: center; }
.download-resource > div { min-width: 0; }
.download-resource small, .download-resource strong { display: block; }
.download-resource small { color: #7d909d; font-size: .56rem; font-weight: 820; letter-spacing: .07em; }
.download-resource strong { color: #294b61; font-size: .7rem; margin-top: .15rem; }
.download-resource > i:last-child, .download-resource > svg:last-child { color: #78909f; margin-left: auto; }
.express-config-page #versionCompatibilityStatus { border-radius: 10px; font-size: .7rem; }
.express-setting-card .card-body { padding: 1.15rem !important; }
.express-setting-card .form-control, .express-setting-card .form-select { min-height: 54px; }
.reset-confirm-card .card-body { padding: 1.8rem !important; }
.reset-warning-icon { align-items: center; background: #f9e8e8; border-radius: 50%; color: #a83d3d; display: flex; font-size: 1.35rem; height: 62px; justify-content: center; margin: 0 auto .9rem; width: 62px; }
.reset-question { color: #193b52; font-size: 1rem; font-weight: 760; margin: 0; }
.reset-help { color: #768b98; font-size: .7rem; margin: .4rem auto 1rem; max-width: 440px; }
.reset-result { align-items: center; border: 1px solid; border-radius: 10px; display: flex; font-size: .75rem; font-weight: 680; gap: .65rem; justify-content: center; padding: .85rem; }
.reset-result.is-error { background: #fff0f0; border-color: #edcaca; color: #9c3737; }
.reset-result.is-success { background: #eaf6f0; border-color: #bfdfcf; color: #246a4c; }
.reset-result.is-warning { background: #fff7e8; border-color: #ead7ad; color: #8a5c1b; }

/* Administración de clientes */
.operations-admin-page { max-width: 1420px !important; padding-bottom: 3rem; }
.admin-page-heading { margin-bottom: 1.25rem; }
.admin-page-heading > div:last-child { display: flex; justify-content: flex-end; }
.admin-customer-table-card { background: #fff; border: 1px solid #d8e3e9 !important; border-radius: 14px !important; box-shadow: 0 12px 30px rgba(7,24,39,.06); overflow: hidden; }
.admin-table-heading { align-items: center; background: #102d43; color: #fff; display: flex; gap: .7rem; min-height: 66px; padding: .8rem 1rem; }
.admin-table-heading > span { align-items: center; background: rgba(255,255,255,.1); border-radius: 8px; display: flex; flex: 0 0 37px; height: 37px; justify-content: center; }
.admin-table-heading h2, .admin-table-heading p { margin: 0; }
.admin-table-heading h2 { color: #fff; font-size: .84rem; font-weight: 760; }
.admin-table-heading p { color: #a9bdca; font-size: .64rem; margin-top: .1rem; }
.admin-customer-table thead th { background: #e9f0f4 !important; border: 0; color: #486678 !important; font-size: .61rem; font-weight: 820; letter-spacing: .055em; text-transform: uppercase; }
.admin-customer-table tbody td { border-color: #e6ecef; color: #526a79; font-size: .71rem; }
.admin-customer-table tbody tr:hover td { background: #f7fafb; }
.operations-admin-page + .modal .modal-content, .operations-admin-page ~ .modal .modal-content { border: 0; border-radius: 14px; box-shadow: 0 22px 60px rgba(4,18,29,.2); overflow: hidden; }
.operations-admin-page + .modal .modal-header, .operations-admin-page ~ .modal .modal-header { background: #102d43 !important; border: 0; min-height: 62px; }
.operations-admin-page ~ .modal .modal-title { color: #fff; font-size: .84rem; }
.operations-admin-page ~ .modal .form-label { color: #536d7d; font-size: .66rem; }

/* Detalle y reporte de muestreo */
.sample-report-page { max-width: 1600px !important; padding-bottom: 3rem; }
.sample-report-heading { margin: 0 auto 1.25rem; max-width: 1500px; }
.sample-report-chip { align-items: center; background: #fff; border: 1px solid #d9e4ea; border-radius: 12px; display: flex; gap: .7rem; min-width: 270px; padding: .75rem .9rem; }
.sample-report-chip > i, .sample-report-chip > svg { background: #e4eff5; border-radius: 8px; box-sizing: content-box; color: #28678e; height: 17px; padding: .55rem; width: 17px; }
.sample-report-chip small, .sample-report-chip strong, .sample-report-chip em { display: block; }
.sample-report-chip small { color: #82939e; font-size: .59rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.sample-report-chip strong { color: #18364c; font-size: .76rem; margin-top: .08rem; max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sample-report-chip em { color: #718590; font-size: .61rem; font-style: normal; margin-top: .08rem; }
.sample-report-card { border: 1px solid #d8e3e9 !important; border-radius: 14px !important; box-shadow: 0 10px 27px rgba(7,24,39,.055) !important; overflow: hidden; }
.sample-report-header { background: #102d43 !important; border: 0; color: #fff !important; min-height: 62px; padding: .75rem 1rem !important; }
.sample-report-header.is-purple { background: #17364d !important; }
.sample-report-header h5, .sample-report-header h6 { color: #fff; font-size: .78rem; font-weight: 760; }
.sample-export-button { background: rgba(255,255,255,.09) !important; border: 1px solid rgba(255,255,255,.18) !important; color: #fff !important; font-size: .64rem; }
.sample-export-button:hover { background: #fff !important; color: #17364d !important; }
.sample-config-card #areaConfig > div { min-height: 54px; }
.sample-config-card #areaConfig small { color: #7b8e9a !important; font-size: .57rem !important; letter-spacing: .06em; }
.sample-config-card #areaConfig span { color: #214c68 !important; font-size: .72rem; }
.sample-report-page .table-scroll-container { border: 0; }
.sample-report-page .table-sampler thead th { background: #e9f0f4 !important; color: #486678 !important; font-size: .58rem; font-weight: 820; letter-spacing: .035em; }
.sample-report-page .table-sampler tbody td { border-color: #e6ecef; color: #506a7a; font-size: .66rem; }
.sample-report-page .summary-box { background: #f7fafb !important; border-color: #dce5ea !important; box-shadow: none !important; }
.sample-report-page .summary-box small { font-size: .56rem !important; }

/* Activación y recuperación de cuentas */
.account-setup-page { align-items: center; background: radial-gradient(circle at 20% 15%, #153d58 0, #071d2d 42%, #061622 100%); display: flex; justify-content: center; min-height: 100vh; padding: 1.25rem; }
.account-setup-shell { background: #fff; border: 1px solid rgba(255,255,255,.1); border-radius: 20px; box-shadow: 0 28px 75px rgba(0,0,0,.3); display: grid; grid-template-columns: minmax(270px,.85fr) minmax(340px,1.15fr); max-width: 900px; overflow: hidden; width: 100%; }
.account-setup-brand { background: linear-gradient(150deg,#0b2b40,#174b69); color: #fff; display: flex; flex-direction: column; justify-content: space-between; min-height: 510px; padding: 2.3rem; }
.account-setup-brand img { filter: brightness(0) invert(1); max-width: 190px; }
.account-setup-brand span { color: #80b5d3; font-size: .61rem; font-weight: 850; letter-spacing: .13em; }
.account-setup-brand h1 { color: #fff; font-size: 2rem; font-weight: 760; margin: .55rem 0 .4rem; }
.account-setup-brand p { color: #aac0cd; font-size: .75rem; line-height: 1.6; margin: 0; }
.account-setup-form { align-self: center; padding: clamp(2rem,5vw,3.5rem); }
.account-setup-form h2 { color: #102d43; font-size: 1.55rem; font-weight: 760; letter-spacing: -.025em; margin: .45rem 0 .55rem; }
.account-setup-form > p { color: #718691; font-size: .73rem; line-height: 1.55; margin-bottom: 1.2rem; }
.account-setup-form .form-label { color: #536e7f; font-size: .65rem; margin-bottom: .35rem; }
.account-setup-form .form-control { min-height: 46px; }
.account-error { align-items: center; background: #fff0f0; border: 1px solid #edcaca; border-radius: 9px; color: #9c3737; display: flex; font-size: .68rem; gap: .5rem; margin-bottom: 1rem; padding: .7rem; }
.account-status-icon { align-items: center; border-radius: 50%; display: flex; font-size: 1.2rem; font-weight: 850; height: 58px; justify-content: center; margin-bottom: 1rem; width: 58px; }
.account-status-icon.is-success { background: #e5f5ed; color: #277452; }
.account-status-icon.is-error { background: #fbe6e6; color: #a63c3c; margin-left: auto; margin-right: auto; }
.account-setup-card { background: #fff; border-radius: 17px; box-shadow: 0 24px 65px rgba(0,0,0,.28); max-width: 430px; padding: 2rem; text-align: center; width: 100%; }
.account-setup-card img { max-width: 170px; }
.account-setup-card h1 { color: #102d43; font-size: 1.35rem; margin: .8rem 0 .45rem; }
.account-setup-card p { color: #718691; font-size: .72rem; margin-bottom: 1rem; }

/* Loader de acceso al control de bomba */
.module-loader-page { align-items: center; background: radial-gradient(circle at 50% 20%, #123d59 0%, #071d2d 50%, #061725 100%); color: #fff; display: flex; justify-content: center; min-height: 100vh; padding: 1.25rem; }
.module-loader-shell { max-width: 720px; width: 100%; }
.module-loader-shell > img { filter: brightness(0) invert(1); height: 44px; margin: 0 0 1.25rem .25rem; max-width: 180px; object-fit: contain; object-position: left; }
.module-loader-card { align-items: center; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.12); border-radius: 20px; box-shadow: 0 24px 65px rgba(0,0,0,.25); display: grid; gap: 2rem; grid-template-columns: 170px minmax(0,1fr); min-height: 270px; padding: 2.2rem; }
.module-loader-orbit { align-items: center; display: flex; height: 150px; justify-content: center; position: relative; width: 150px; }
.module-loader-orbit::before, .module-loader-orbit span { border: 2px solid rgba(112,192,239,.3); border-radius: 50%; inset: 0; position: absolute; }
.module-loader-orbit::before { animation: module-orbit 1.5s linear infinite; border-right-color: #77c2ed; content: ''; }
.module-loader-orbit span { inset: 20px; }
.module-loader-orbit > i, .module-loader-orbit > svg { color: #81caee; font-size: 2rem; }
.module-loader-card small { color: #79b9de; font-size: .61rem; font-weight: 850; letter-spacing: .13em; }
.module-loader-card h1 { color: #fff; font-size: clamp(1.4rem,4vw,1.95rem); font-weight: 760; letter-spacing: -.03em; margin: .5rem 0; }
.module-loader-card p { color: #9db4c3; font-size: .74rem; line-height: 1.6; }
.module-loader-progress { background: rgba(255,255,255,.09); border-radius: 999px; height: 5px; overflow: hidden; }
.module-loader-progress span { animation: wifi-progress 1.7s ease-in-out infinite; background: linear-gradient(90deg,#438fbc,#81caee); border-radius: inherit; display: block; height: 100%; width: 36%; }
@keyframes module-orbit { to { transform: rotate(360deg); } }

.wifi-scan-loader-page { align-items: center; background: radial-gradient(circle at 50% 25%, #123d59 0%, #071d2d 48%, #061725 100%); color: #fff; display: flex; justify-content: center; min-height: 100vh; overflow: hidden; padding: 1.25rem; }
.wifi-scan-loader { max-width: 760px; width: 100%; }
.wifi-loader-brand { filter: brightness(0) invert(1); height: 46px; margin: 0 0 1.3rem .35rem; max-width: 180px; object-fit: contain; object-position: left center; }
.wifi-loader-card { align-items: center; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.12); border-radius: 20px; box-shadow: 0 24px 65px rgba(0,0,0,.26); display: grid; gap: 2rem; grid-template-columns: 220px minmax(0,1fr); min-height: 330px; overflow: hidden; padding: 2.2rem; position: relative; }
.wifi-loader-card::after { background: linear-gradient(90deg, transparent, rgba(255,255,255,.045), transparent); content: ''; inset: 0; position: absolute; transform: translateX(-100%); animation: wifi-sheen 2.8s ease-in-out infinite; }
.wifi-radar { height: 190px; position: relative; width: 190px; }
.wifi-radar-ring { border: 2px solid rgba(96,181,232,.3); border-radius: 50%; left: 50%; position: absolute; top: 50%; transform: translate(-50%,-50%); }
.wifi-radar-ring::after { animation: wifi-ping 2.1s ease-out infinite; border: 2px solid rgba(112,192,239,.7); border-radius: 50%; content: ''; inset: -2px; position: absolute; }
.wifi-radar-ring.ring-one { height: 65px; width: 65px; }
.wifi-radar-ring.ring-two { height: 120px; width: 120px; }
.wifi-radar-ring.ring-two::after { animation-delay: .4s; }
.wifi-radar-ring.ring-three { height: 180px; width: 180px; }
.wifi-radar-ring.ring-three::after { animation-delay: .8s; }
.wifi-radar-device { background: #66b6e5; border: 5px solid #183e57; border-radius: 50%; box-shadow: 0 0 0 3px rgba(102,182,229,.25), 0 0 24px rgba(102,182,229,.65); height: 24px; left: 50%; position: absolute; top: 50%; transform: translate(-50%,-50%); width: 24px; }
.wifi-loader-copy { position: relative; z-index: 1; }
.wifi-loader-kicker { color: #79b9de; display: block; font-size: .63rem; font-weight: 850; letter-spacing: .15em; margin-bottom: .55rem; }
.wifi-loader-copy h1 { color: #fff; font-size: clamp(1.55rem,4vw,2.2rem); font-weight: 760; letter-spacing: -.035em; margin: 0; }
.wifi-loader-copy p { color: #9db4c3; font-size: .78rem; line-height: 1.65; margin: .75rem 0 1.25rem; }
.wifi-loader-progress { background: rgba(255,255,255,.09); border-radius: 999px; height: 5px; overflow: hidden; }
.wifi-loader-progress span { animation: wifi-progress 1.7s ease-in-out infinite; background: linear-gradient(90deg,#438fbc,#81caee); border-radius: inherit; display: block; height: 100%; width: 36%; }
.wifi-loader-copy small { color: #748f9f; display: block; font-size: .62rem; margin-top: .65rem; }
@keyframes wifi-ping { 0% { opacity:.8; transform:scale(.75); } 75%,100% { opacity:0; transform:scale(1.2); } }
@keyframes wifi-progress { 0% { transform:translateX(-110%); } 100% { transform:translateX(310%); } }
@keyframes wifi-sheen { 0%,35% { transform:translateX(-100%); } 75%,100% { transform:translateX(100%); } }
.device-card-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); padding: 1.35rem; }
.device-card { background: #f0f4f7; border: 1px solid #c4d2dc; border-radius: 13px; box-shadow: 0 5px 14px rgba(19,54,77,.08); color: inherit; display: flex; flex-direction: column; min-height: 205px; overflow: hidden; padding: 1.15rem; position: relative; text-decoration: none; transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.device-card::before { background: #2b6f99; content: ''; height: 3px; left: 0; position: absolute; right: 0; top: 0; transform: scaleX(.18); transform-origin: left; transition: transform .2s ease; }
.device-card:hover { background: #f8fafb; border-color: #7fa8c1; box-shadow: 0 14px 28px rgba(20,65,92,.16); color: inherit; transform: translateY(-3px); }
.device-card:hover::before { transform: scaleX(1); }
.device-card-top { align-items: center; display: flex; justify-content: space-between; }
.device-card-id { color: #4e7188; font-size: .67rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.device-card-status { align-items: center; background: #eaf1f5; border-radius: 999px; color: #577183; display: flex; font-size: .65rem; font-weight: 700; padding: .3rem .55rem; }
.device-card h2 { color: #102d42; font-size: 1.08rem; font-weight: 720; line-height: 1.35; margin: 1rem 0 .35rem; }
.device-card-subtitle { color: #7d8f9b; font-size: .74rem; }
.device-card-footer { align-items: center; border-top: 1px solid #e2e8ed; display: flex; justify-content: space-between; margin-top: auto; padding-top: .9rem; }
.device-sensor-count { align-items: center; color: #4c6576; display: flex; font-size: .74rem; gap: .45rem; }
.device-sensor-count strong { color: #153b55; font-size: 1rem; }
.device-open-action { align-items: center; color: #215e85; display: flex; font-size: .73rem; font-weight: 750; gap: .45rem; }
.dashboard-empty { color: #718593; grid-column: 1 / -1; padding: 3rem 1rem; text-align: center; }
.dashboard-empty i, .dashboard-empty svg { color: #aac0ce; display: block; font-size: 2rem; margin: 0 auto .8rem; }
.app-transition-loader { align-items: center; background: rgba(238,243,247,.94); bottom: 0; color: #153b55; flex-direction: column; font-size: .82rem; font-weight: 750; gap: 1rem; justify-content: center; left: 278px; position: fixed; right: 0; top: 0; z-index: 1050; }
.app-transition-loader[hidden] { display: none !important; }
.spin-loader-trans { animation: ig-spin .8s linear infinite; border: 4px solid #cbd8e1; border-radius: 50%; border-top-color: #215e85; height: 46px; width: 46px; }

/* Consola de dispositivo */
.device-console { margin: 0 auto; max-width: 1550px; padding: clamp(1.5rem, 3vw, 3.15rem); }
.device-console-header, .operational-page-heading { align-items: center; display: flex; gap: 2rem; justify-content: space-between; margin-bottom: 1.5rem; }
.device-console-header h1, .operational-page-heading h1 { color: var(--ig-navy-950); font-size: clamp(1.65rem, 2.8vw, 2.45rem); font-weight: 760; letter-spacing: -.035em; margin: 0; }
.device-console-header p, .operational-page-heading p { color: var(--ig-slate-500); font-size: .86rem; margin: .4rem 0 0; }
.device-console-header p span { background: #dfe9ef; border-radius: 5px; color: #446174; font-size: .66rem; font-weight: 800; letter-spacing: .06em; margin-right: .45rem; padding: .25rem .45rem; text-transform: uppercase; }
.device-connection-pill { align-items: center; border: 1px solid; border-radius: 999px; display: inline-flex; flex: 0 0 auto; font-size: .72rem; font-weight: 750; gap: .5rem; padding: .55rem .85rem; }
.device-connection-pill.is-online { background: #e8f5ef; border-color: #b9decf; color: #1d704c; }
.device-connection-pill.is-offline { background: #fff0f0; border-color: #ecc7c7; color: #a83232; }
.device-connection-pill.is-searching { background: #fff7e8; border-color: #ead7ad; color: #916019; }
.device-connection-pill.is-searching i, .device-connection-pill.is-searching svg { animation: ig-spin 1.2s linear infinite; }
.device-query-panel { overflow: hidden; }
.device-panel-heading { align-items: center; background: #f7fafb; border-bottom: 1px solid #e1e8ed; display: flex; gap: .75rem; padding: .9rem 1rem; }
.device-panel-heading > span { align-items: center; background: #e2eef5; border-radius: 8px; color: #28678f; display: flex; height: 35px; justify-content: center; width: 35px; }
.device-panel-heading strong, .device-panel-heading small { display: block; }
.device-panel-heading strong { color: #17364d; font-size: .82rem; }
.device-panel-heading small { color: #7b8e9b; font-size: .68rem; margin-top: .08rem; }
.device-query-panel .status-badge { background: #f7fafb; border-color: #dae4ea; }
.device-module-nav { background: #fff; border: 1px solid #dbe4ea; border-radius: 13px; display: flex; flex-wrap: wrap; gap: .5rem; padding: .65rem; }
.device-module-nav .btn, .device-module-nav .btn-modern { background: transparent !important; border: 0 !important; border-radius: 8px !important; color: #516a7b !important; min-height: 42px; padding: .55rem .8rem; }
.device-module-nav .btn:hover { background: #edf3f7 !important; color: var(--ig-navy-900) !important; }
.device-module-nav .btn-modern-primary { background: var(--ig-navy-900) !important; color: #fff !important; }
.device-module-nav .dropdown-menu { border: 1px solid #dce4ea !important; border-radius: 10px; }
.device-console .toolbar-card, .device-console .table-card { border: 1px solid #dbe4ea !important; border-radius: 14px !important; box-shadow: 0 10px 28px rgba(7,24,39,.055) !important; }
.device-console .table-card .card-header { background: #fff !important; }
.device-console .table-fixed-header thead th { background: #edf3f7 !important; color: #4b6678; }

/* Centro de comandos y páginas operativas */
.operational-page { max-width: 1320px !important; padding-bottom: 3rem; }
.selected-device-card { display: none; }
.command-center-card { overflow: hidden; }
.command-center-card > .card-header { background: #f7fafb !important; border-bottom: 1px solid #dfe7ec !important; color: #17364d !important; padding: 1rem 1.2rem !important; }
.command-center-card > .card-header h5 { font-size: .88rem; font-weight: 750; }
.command-center-card > .card-body { padding: 1.25rem !important; }
.has-app-shell .command-center-card .btn-neumorphism { align-items: center; background: #f8fafb; border: 1px solid #dce5eb; border-radius: 11px; box-shadow: none; color: #355467; display: flex; font-size: .78rem; font-weight: 700; justify-content: flex-start; min-height: 62px; padding: .8rem 1rem; text-align: left; width: 100%; }
.has-app-shell .command-center-card .btn-neumorphism i, .has-app-shell .command-center-card .btn-neumorphism svg { background: #e2edf4; border-radius: 8px; color: #25658d; flex: 0 0 auto; font-size: .9rem; height: 34px; margin-right: .7rem; padding: .55rem; width: 34px; }
.has-app-shell .command-center-card .btn-neumorphism:hover:not(.disabled):not(:disabled) { background: #fff; border-color: #9dbed2; box-shadow: 0 8px 18px rgba(20,65,92,.1); color: #173b54; transform: translateY(-2px); }
.has-app-shell .command-center-card .btn-neumorphism.disabled, .has-app-shell .command-center-card .btn-neumorphism:disabled { background: #f1f3f5; box-shadow: none; opacity: .55; }
.has-app-shell .command-center-card a[href="reset.php"], .has-app-shell .command-center-card button[name="StopDevice"] { color: #963b3b; }
.has-app-shell .command-center-card a[href="reset.php"] i, .has-app-shell .command-center-card a[href="reset.php"] svg, .has-app-shell .command-center-card button[name="StopDevice"] i, .has-app-shell .command-center-card button[name="StopDevice"] svg { background: #f7e6e6; color: #a53a3a; }

/* Configuración general del dispositivo */
.device-config-page { max-width: 1380px !important; }
.config-page-heading { margin-top: 1.5rem; }
.config-device-identity { align-items: center; background: #fff; border: 1px solid #d9e4ea; border-radius: 13px; display: flex; gap: .8rem; min-width: 285px; padding: .8rem 1rem; }
.config-device-identity > span { align-items: center; background: #e4eff5; border-radius: 9px; color: #24638a; display: flex; flex: 0 0 39px; height: 39px; justify-content: center; }
.config-device-identity small, .config-device-identity strong, .config-device-identity em { display: block; }
.config-device-identity small { color: #81919c; font-size: .61rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.config-device-identity strong { color: #18364c; font-size: .8rem; margin-top: .08rem; max-width: 235px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.config-device-identity em { color: #718592; font-size: .64rem; font-style: normal; margin-top: .08rem; }
.device-config-form { row-gap: 1rem; }
.device-config-page .config-overview-card, .device-config-page .config-sensors-card { border-radius: 14px !important; overflow: hidden; }
.device-config-page .config-section-header { align-items: center; background: #f7fafb !important; border-bottom: 1px solid #dfe7ec !important; color: inherit !important; display: flex; gap: .75rem; min-height: 68px; padding: .85rem 1rem !important; }
.config-section-icon { align-items: center; background: #e2eef5; border-radius: 9px; color: #28678f; display: flex; flex: 0 0 38px; height: 38px; justify-content: center; }
.config-section-header h2, .config-section-header p { margin: 0; }
.config-section-header h2 { color: #17364d; font-size: .88rem; font-weight: 760; }
.config-section-header p { color: #7b8e9b; font-size: .67rem; margin-top: .12rem; }
.config-sensors-heading .config-transducer-action { margin-left: auto; min-height: 38px; }
.config-overview-card .card-body { padding: 1.2rem !important; }
.config-overview-card .form-label { color: #5d7382; font-size: .68rem !important; letter-spacing: .025em; margin-bottom: .35rem !important; }
.config-overview-card .form-check { background: #f3f7f9; border: 1px solid #dce5eb; border-radius: 9px; min-height: 44px; padding: .65rem .8rem .55rem 2.8rem; }
.config-sensor-table { --bs-table-striped-bg: transparent; }
.config-sensor-table thead th { background: #102d43; border: 0; color: #dce7ee; font-size: .64rem; font-weight: 750; letter-spacing: .06em; padding: .75rem .55rem !important; text-transform: uppercase; }
.config-sensor-table tbody td { background: #fff; border-color: #e5ebef; padding: .65rem .55rem !important; }
.config-sensor-table tbody tr:hover td { background: #f8fafb; }
.config-sensor-table .sensor-number-cell { color: #245f85; font-size: .82rem; }
.config-sensor-table .form-control { background: #f8fafb; border-color: #d9e3e9; }
.config-sensor-table .form-control:focus { background: #fff; }
.config-action-bar { align-items: center; background: #fff; border: 1px solid #d9e3e9; border-radius: 13px; box-shadow: 0 10px 25px rgba(7,24,39,.06); display: flex; justify-content: space-between; padding: .8rem; }
.config-action-bar > div { display: flex; gap: .6rem; }

/* Normalización inmediata de módulos heredados dentro del nuevo shell */
.has-app-shell > .container, .has-app-shell > .container-fluid, .has-app-shell .main-content-container { max-width: 1320px; }
.has-app-shell .card:not(.device-card) { border-color: #dbe4ea !important; box-shadow: 0 8px 24px rgba(7,24,39,.055) !important; }
.has-app-shell .card-header-industrial { background: #102d43 !important; }

@media (max-width: 991.98px) {
    .has-app-shell { padding-left: 0; padding-top: 66px; }
    .app-transition-loader { left: 0; top: 66px; }
    .app-mobile-header { align-items: center; background: #071d2d; box-shadow: 0 5px 20px rgba(7,24,39,.2); display: flex; height: 66px; justify-content: space-between; left: 0; padding: 0 1rem; position: fixed; right: 0; top: 0; z-index: 1035; }
    .app-menu-toggle { align-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 8px; color: #fff; display: flex; height: 40px; justify-content: center; width: 40px; }
    .app-mobile-brand img { filter: brightness(0) invert(1); height: 35px; max-width: 130px; object-fit: contain; }
    .app-mobile-product { color: #91abbc; font-size: .72rem; font-weight: 700; }
    .app-sidebar { transform: translateX(-105%); transition: transform .22s ease; }
    .sidebar-open .app-sidebar { transform: translateX(0); }
    .app-sidebar-backdrop { background: rgba(3,14,23,.58); bottom: 0; left: 0; position: fixed; right: 0; top: 0; z-index: 1039; }
    .sidebar-open .app-sidebar-backdrop { display: block; }
    .sidebar-open { overflow: hidden; }
    .dashboard-heading { align-items: flex-start; flex-direction: column; gap: 1rem; }
    .tree-dashboard-heading { align-items: flex-start; flex-direction: column; gap: 1rem; }
    .device-console-header, .operational-page-heading { align-items: flex-start; flex-direction: column; gap: .85rem; }
    .config-device-identity { min-width: 0; width: 100%; }
    .calibration-device-card { min-width: 0; width: 100%; }
    .tree-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
    .operations-dashboard { padding: 1.25rem .9rem 2rem; }
    .dashboard-stats { grid-template-columns: 1fr; }
    .dashboard-stat { min-height: 86px; }
    .device-workspace-toolbar, .device-filters { align-items: stretch; flex-direction: column; }
    .device-filters, .device-search, .device-search input, .site-selector, .site-selector select { width: 100%; }
    .site-selector { align-items: stretch; flex-direction: column; }
    .site-selector label { min-height: 34px; }
    .site-selector select { border-left: 0; border-top: 1px solid #dbe4ea; }
    .monitoring-view-switch { display: flex; width: 100%; }
    .monitoring-view-option { flex: 1; justify-content: center; }
    .device-console { padding: 1.25rem .9rem 2rem; }
    .device-module-nav { display: grid; grid-template-columns: 1fr 1fr; }
    .device-module-nav .dropdown, .device-module-nav .dropdown > .btn { width: 100%; }
    .config-sensors-heading { align-items: flex-start !important; flex-wrap: wrap; }
    .config-sensors-heading .config-transducer-action { margin-left: 0; width: 100%; }
    .config-sensor-table thead { display: none; }
    .config-sensor-table, .config-sensor-table tbody { display: block; width: 100%; }
    .config-sensor-table tbody { background: #eef3f6; display: grid; gap: .8rem; padding: .8rem; }
    .config-sensor-table tbody tr { background: #fff; border: 1px solid #d9e3e9; border-radius: 11px; display: grid; overflow: hidden; padding: .4rem .8rem; width: 100%; }
    .config-sensor-table tbody td { align-items: center; border-bottom: 1px solid #e8edf0; display: grid; gap: .75rem; grid-template-columns: 90px minmax(0, 1fr); min-height: 49px; padding: .55rem 0 !important; text-align: left !important; width: 100% !important; }
    .config-sensor-table tbody td:last-child { border-bottom: 0; }
    .config-sensor-table tbody td::before { color: #6b7f8d; content: attr(data-label); font-size: .63rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
    .config-sensor-table .sensor-number-cell { background: #f2f7fa; border-radius: 7px; margin: .35rem 0; padding: .45rem .6rem !important; }
    .config-action-bar { align-items: stretch; flex-direction: column-reverse; gap: .6rem; }
    .config-action-bar > div { flex-direction: column; }
    .config-action-bar .btn { width: 100%; }
    .calibration-stepper { grid-template-columns: 1fr 1fr; }
    .calibration-stepper > div:nth-child(2)::after { display: none; }
    .calibration-message-column { min-height: 190px; }
    .calibration-action-bar { align-items: stretch; flex-direction: column; gap: .6rem; }
    .calibration-action-bar form, .calibration-action-bar .btn { width: 100%; }
    .pump-device-chip { min-width: 0; width: 100%; }
    .pump-module-nav { grid-template-columns: 1fr; }
    .pump-module-nav a { justify-content: flex-start; padding-left: 1rem; }
    .sampling-mode-selector { grid-template-columns: 1fr; }
    .pump-form-action-bar { align-items: stretch; flex-direction: column-reverse; gap: .6rem; }
    .pump-form-action-bar > div, .pump-form-action-bar .btn { width: 100%; }
    .wifi-device-chip { min-width: 0; width: 100%; }
    .phone-device-chip { min-width: 0; width: 100%; }
    .realtime-device-chip, .graph-device-chip { min-width: 0; width: 100%; }
    .master-alarm-chip { min-width: 0; width: 100%; }
    .downloads-summary-chip { min-width: 0; width: 100%; }
    .sample-report-chip { min-width: 0; width: 100%; }
    .download-resource-grid { grid-template-columns: 1fr; }
    .support-action-bar { align-items: stretch; flex-direction: column; gap: .6rem; }
    .support-action-bar .btn { width: 100%; }
    .admin-page-heading > div:last-child { justify-content: flex-start; width: 100%; }
    .account-setup-shell { grid-template-columns: 1fr; }
    .account-setup-brand { display: none; }
    .module-loader-card { grid-template-columns: 1fr; text-align: center; }
    .module-loader-orbit { margin: 0 auto; }
    .config-workflow-actions { align-items: stretch; flex-direction: column-reverse; gap: .6rem; }
    .config-workflow-actions > div { flex-direction: column; }
    .config-workflow-actions .btn { width: 100%; }
    .realtime-panel-header { align-items: flex-start; flex-direction: column; }
    .realtime-live-badge { margin-left: 0; }
    .realtime-action-bar .btn, .graph-action-bar .btn { width: 100%; }
    .phone-identifier-list { grid-template-columns: 1fr; }
    .phone-action-bar .btn { width: 100%; }
    .wifi-section-header { align-items: flex-start; flex-direction: column; }
    .wifi-rescan-button { width: 100%; }
    .wifi-action-bar { align-items: stretch; flex-direction: column-reverse; gap: .6rem; }
    .wifi-action-bar .btn { width: 100%; }
    .wifi-loader-card { grid-template-columns: 1fr; padding: 1.5rem; text-align: center; }
    .wifi-radar { height: 150px; margin: 0 auto; width: 150px; }
    .wifi-radar-ring.ring-one { height: 52px; width: 52px; }
    .wifi-radar-ring.ring-two { height: 98px; width: 98px; }
    .wifi-radar-ring.ring-three { height: 145px; width: 145px; }
    .wifi-loader-brand { margin-left: auto; margin-right: auto; }
    .device-search input, .site-selector select { min-width: 0; }
    .device-card-grid { grid-template-columns: 1fr; padding: .9rem; }
}
