* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

.sat-body {
    margin: 0;
    color: #1f2d36;
    background: #eef3f5;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}

.sat-app-shell {
    display: flex;
    min-height: 100vh;
}

.sat-sidebar {
    position: sticky;
    top: 0;
    align-self: flex-start;
    flex: 0 0 260px;
    width: 260px;
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    color: #ffffff;
    background: #102a43;
    display: flex;
    flex-direction: column;
}

.sat-sidebar > * {
    flex-shrink: 0;
}

.sat-brand {
    order: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 22px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.sat-brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #009688;
    font-weight: bold;
}

.sat-brand-logo {
    width: 58px;
    height: 58px;
    object-fit: contain;
    border-radius: 8px;
    background: #ffffff;
    padding: 4px;
}

.sat-brand strong,
.sat-brand span {
    display: block;
}

.sat-brand span {
    color: #bdd4e7;
    font-size: 12px;
    margin-top: 3px;
}

.sat-sidebar-nav {
    order: 2;
    padding: 14px 12px;
}

.sat-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 12px;
    color: #d9e8f4;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
}

.sat-nav-item:hover,
.sat-nav-item.sat-is-active {
    color: #ffffff;
    background: #1f4f7a;
}

.sat-nav-icon {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    background: #9bd8cf;
}

.sat-sidebar-footer {
    order: 1;
    margin-top: 0;
    padding: 18px;
    border-top: 1px solid rgba(255,255,255,0.12);
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.sat-sidebar-footer span,
.sat-sidebar-footer strong {
    display: block;
}

.sat-sidebar-footer span {
    color: #bdd4e7;
    margin-bottom: 4px;
}

.sat-account-box {
    margin: 12px;
    padding: 14px;
    color: #d9e8f4;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
}

.sat-account-box strong,
.sat-account-box span {
    display: block;
}

.sat-account-label {
    color: #9bd8cf;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.sat-account-box strong {
    margin-top: 5px;
    color: #ffffff;
    line-height: 1.25;
}

.sat-account-email {
    margin-top: 4px;
    color: #bdd4e7;
    font-size: 12px;
    word-break: break-word;
}

.sat-account-profile {
    margin-top: 6px;
    color: #9bd8cf;
    font-size: 12px;
    line-height: 1.25;
}

.sat-account-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
}

.sat-account-actions a {
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    color: #ffffff;
    background: #009688;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
}

.sat-account-actions a:last-child {
    background: #ef4444;
}

.sat-main {
    flex: 1;
    min-width: 0;
    padding: 20px;
}

.sat-header {
    min-height: 82px;
    padding: 18px 22px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(15, 42, 63, 0.08);
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
}

.sat-kicker {
    display: block;
    color: #607d8b;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.sat-header h1,
.sat-header p,
.sat-panel-header h2,
.sat-panel-header p,
.sat-data-card h2 {
    margin: 0;
}

.sat-header h1 {
    margin-top: 4px;
    font-size: 26px;
}

.sat-header p {
    margin-top: 4px;
    color: #607d8b;
}

.sat-current-view {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 8px;
    color: #0f766e;
    background: #e5f5f1;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
}

.sat-header-status {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 160px;
    justify-content: flex-end;
    color: #0b7f69;
    font-weight: bold;
}

.sat-header-account {
    min-width: 300px;
    max-width: 360px;
    padding: 12px 14px;
    border: 1px solid #d9e3ea;
    border-left: 5px solid #009688;
    border-radius: 8px;
    background: #f8fbfc;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    justify-items: end;
    text-align: right;
}

.sat-header-account-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0b7f69;
    font-weight: bold;
}

.sat-header-account-user {
    max-width: 100%;
}

.sat-header-account-user .sat-account-label {
    color: #607d8b;
}

.sat-header-account-user strong {
    display: block;
    max-width: 100%;
    color: #102231;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.sat-header-account-user .sat-account-email {
    color: #607d8b;
}

.sat-header-account .sat-account-actions {
    width: 230px;
    margin-top: 0;
}

.sat-status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #00a676;
}

.sat-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.sat-metric-card {
    min-height: 86px;
    padding: 18px;
    background: #ffffff;
    border-left: 5px solid #009688;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(15, 42, 63, 0.08);
}

.sat-metric-card span,
.sat-metric-card strong {
    display: block;
}

.sat-metric-card span {
    color: #607d8b;
}

.sat-metric-card strong {
    margin-top: 8px;
    font-size: 28px;
}

.sat-metric-warning {
    border-left-color: #ff9800;
}

.sat-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 16px;
    margin-top: 16px;
}

.sat-map-panel,
.sat-side-panel,
.sat-data-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(15, 42, 63, 0.08);
}

.sat-panel-header {
    padding: 18px;
    border-bottom: 1px solid #e2e8ee;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

.sat-panel-header h2,
.sat-data-card h2 {
    font-size: 18px;
}

.sat-panel-header p {
    color: #607d8b;
    margin-top: 4px;
}

.sat-filter-bar {
    display: flex;
    gap: 8px;
}

.sat-button {
    min-height: 36px;
    padding: 0 14px;
    border: 0;
    border-radius: 6px;
    color: #ffffff;
    background: #009688;
    font-weight: bold;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.sat-button-muted {
    color: #1f2d36;
    background: #e8eef2;
}

.sat-map-placeholder {
    position: relative;
    min-height: 470px;
    overflow: hidden;
    background: #dce9e5;
    border-radius: 0 0 8px 8px;
}

.sat-map-tabs {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    overflow-x: auto;
    border-top: 1px solid #d9e3ea;
    background: #f6faf9;
}

.sat-map-tab {
    min-height: 36px;
    padding: 0 11px;
    flex: 0 0 auto;
    border: 1px solid #d9e3ea;
    border-radius: 6px;
    color: #334155;
    background: #fff;
    font: inherit;
    font-weight: bold;
    cursor: pointer;
}

.sat-map-tab:hover,
.sat-map-tab.sat-is-active {
    border-color: #008d82;
    color: #fff;
    background: #008d82;
}

.sat-map-tab span {
    display: inline-block;
    min-width: 20px;
    margin-left: 5px;
    padding: 2px 5px;
    border-radius: 10px;
    color: #fff;
    background: #0f344f;
    text-align: center;
    font-size: 11px;
}

.sat-map-leaflet-shell {
    min-height: 520px;
}

.sat-leaflet-map {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: #d6e5df;
}

.sat-leaflet-map .leaflet-tile {
    image-rendering: auto;
}

.sat-map-note {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 450;
    max-width: 320px;
    padding: 8px 10px;
    color: #1f2d36;
    background: rgba(255,255,255,0.92);
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(15, 42, 63, 0.12);
    font-size: 12px;
    font-weight: bold;
}

.sat-map-legend {
    display: grid;
    gap: 5px;
    padding: 9px 11px;
    color: #193047;
    background: rgba(255,255,255,0.95);
    border: 1px solid #d4e2ea;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(15, 42, 63, 0.12);
    font: 12px Arial, sans-serif;
}

.sat-map-legend span {
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.sat-map-key {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.sat-map-key-level { background: #008d82; }
.sat-map-key-rain { background: #2873b9; }
.sat-map-key-sound { background: #267447; }
.sat-map-key-alert { background: #c62828; }
.sat-map-popup, .sat-map-popup * { user-select: text; -webkit-user-select: text; }
.sat-map-popup { cursor: text; }
.sat-map-popup a { cursor: pointer; }
.sat-device-tooltip {
    width: 280px;
    max-width: calc(100vw - 60px);
    white-space: normal;
    padding: 12px;
    font-size: 13px;
    line-height: 1.45;
    background: #fff;
    box-shadow: 0 3px 16px rgba(15, 42, 63, 0.2);
}
.sat-device-tooltip .sat-map-popup span { color: #425466; }
.sat-map-key-ground { background: #765799; }

.sat-map-multi {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 2px solid #fff;
    border-radius: 50%;
    color: #fff;
    background: #334155;
    box-shadow: 0 0 0 1px rgba(15, 52, 79, 0.35);
    font: bold 12px Arial, sans-serif;
}

.sat-map-multi-ground { background: #765799; }

.sat-sensor-category-shell {
    padding: 18px;
    display: grid;
    gap: 18px;
    background: #f6faf9;
    border-radius: 0 0 8px 8px;
}

.sat-sensor-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid #d9e3ea;
}

.sat-sensor-tab {
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid #d9e3ea;
    border-radius: 8px;
    color: #334155;
    background: #ffffff;
    font: inherit;
    font-weight: bold;
    cursor: pointer;
}

.sat-sensor-tab:hover,
.sat-sensor-tab.sat-is-active {
    color: #ffffff;
    border-color: #009688;
    background: #009688;
}

.sat-sensor-tab span {
    min-width: 24px;
    height: 22px;
    margin-left: 6px;
    padding: 2px 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: #0f344f;
    font-size: 12px;
}

.sat-category-group {
    background: #ffffff;
    border: 1px solid #dbe6ea;
    border-radius: 8px;
    overflow: hidden;
}

.sat-category-heading {
    min-height: 54px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-left: 5px solid #009688;
    background: #eef7f5;
}

.sat-category-heading h3 {
    font-size: 17px;
    line-height: 1.2;
}

.sat-category-heading span {
    min-width: 34px;
    height: 28px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: #0f344f;
    font-weight: bold;
}

.sat-device-grid {
    padding: 14px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.sat-device-activation {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sat-device-activation .sat-device-card { flex: 1; }
.sat-device-activation [role="status"] { font-size: 13px; }
.sat-device-card {
    min-height: 132px;
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
    position: relative;
    padding: 10px;
    color: #102231;
    text-decoration: none;
    border: 1px solid #d9e4e8;
    border-radius: 8px;
    background: #ffffff;
}

.sat-device-card:hover {
    border-color: #009688;
    box-shadow: 0 8px 18px rgba(15, 42, 63, 0.14);
}

.sat-device-image {
    width: 88px;
    height: 88px;
    border-radius: 6px;
    background-color: #e8eef2;
    background-position: center;
    background-size: cover;
    border: 1px solid #d2dde3;
}

.sat-device-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-right: 4px;
}

.sat-device-body strong {
    font-size: 15px;
    line-height: 1.2;
}

.sat-device-body em,
.sat-device-meta {
    color: #547184;
    font-size: 12px;
    font-style: normal;
    line-height: 1.3;
}

.sat-device-state {
    grid-column: 1 / -1;
    justify-self: start;
    min-height: 24px;
    padding: 4px 8px;
    border-radius: 999px;
    color: #ffffff;
    background: #009688;
    font-size: 12px;
    font-weight: bold;
}

.sat-device-state-preventivo {
    color: #1f2d36;
    background: #facc15;
}

.sat-device-state-critico,
.sat-device-state-alerta {
    background: #ef4444;
}

.sat-device-state-sin-comunicacion {
    background: #94a3b8;
}
.sat-device-state-apagada { background: #94a3b8; }
.sat-device-state-encendida { background: #15803d; }

.sat-device-battery-slot:empty { display: none; }
.sat-device-battery { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: bold; white-space: nowrap; color: #486581; }
.sat-device-battery svg { flex: none; }

.sat-alert-console {
    padding: 18px;
    display: grid;
    gap: 16px;
    background: #f6faf9;
    border-radius: 0 0 8px 8px;
}

.sat-alert-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid #d9e3ea;
}

.sat-alert-tab {
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid #d9e3ea;
    border-radius: 8px;
    color: #334155;
    background: #ffffff;
    font: inherit;
    font-weight: bold;
    cursor: pointer;
}

.sat-alert-tab:hover,
.sat-alert-tab.sat-is-active {
    color: #ffffff;
    border-color: #009688;
    background: #009688;
}

.sat-alert-tab-critical.sat-is-active,
.sat-alert-tab-critical:hover {
    border-color: #ef4444;
    background: #ef4444;
}

.sat-alert-tab-warning.sat-is-active,
.sat-alert-tab-warning:hover {
    color: #1f2d36;
    border-color: #facc15;
    background: #facc15;
}

.sat-alert-tab span {
    min-width: 24px;
    height: 22px;
    margin-left: 6px;
    padding: 2px 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: #0f344f;
    font-size: 12px;
}

.sat-alert-summary {
    padding: 10px 12px;
    color: #00695c;
    background: #dff3ec;
    border-radius: 6px;
    font-weight: bold;
}

.sat-alert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 12px;
}

.sat-alert-card {
    border: 1px solid #d9e4e8;
    border-left: 6px solid #009688;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(15, 42, 63, 0.08);
    overflow: hidden;
}

.sat-alert-card:hover {
    box-shadow: 0 10px 22px rgba(15, 42, 63, 0.14);
}

.sat-alert-card-critico,
.sat-alert-card-alerta {
    border-left-color: #ef4444;
}

.sat-alert-card-preventivo {
    border-left-color: #f59e0b;
}

.sat-alert-card-sin-comunicacion {
    border-left-color: #94a3b8;
}

.sat-alert-card-main {
    min-height: 146px;
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
    color: #102231;
    text-decoration: none;
}

.sat-alert-image {
    width: 96px;
    height: 96px;
    border-radius: 6px;
    background-color: #e8eef2;
    background-position: center;
    background-size: cover;
    border: 1px solid #d2dde3;
}

.sat-alert-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sat-alert-body strong {
    font-size: 16px;
    line-height: 1.2;
}

.sat-alert-body em,
.sat-alert-body span {
    color: #547184;
    font-size: 12px;
    font-style: normal;
    line-height: 1.25;
}

.sat-alert-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid #eef2f4;
    background: #fbfdfe;
}

.sat-alert-state {
    min-height: 24px;
    padding: 4px 8px;
    border-radius: 999px;
    color: #ffffff;
    background: #009688;
    font-size: 12px;
    font-weight: bold;
}

.sat-alert-state-preventivo {
    color: #1f2d36;
    background: #facc15;
}

.sat-alert-state-critico,
.sat-alert-state-alerta {
    background: #ef4444;
}

.sat-alert-state-sin-comunicacion {
    background: #94a3b8;
}

.sat-map-marker {
    width: auto;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border: 2px solid #ffffff;
    box-shadow: 0 6px 14px rgba(15, 42, 63, 0.28);
    font-size: 11px;
    font-weight: bold;
}

.sat-map-marker-normal {
    background: #00a676;
}

.sat-map-marker-preventivo {
    color: #1f2d36;
    background: #f4c20d;
}

.sat-map-marker-alerta {
    background: #ff9800;
}

.sat-map-marker-critico {
    background: #ef4444;
}

.sat-map-marker-sin-comunicacion {
    background: #8a98a5;
}

.sat-map-popup strong,
.sat-map-popup span {
    display: block;
}

.sat-map-popup span {
    margin-top: 4px;
    color: #607d8b;
}

.sat-map-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.34) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.34) 1px, transparent 1px);
    background-size: 48px 48px;
}

.sat-map-control {
    position: absolute;
    left: 18px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(15, 42, 63, 0.18);
    font-size: 22px;
    cursor: pointer;
}

.sat-map-plus {
    top: 18px;
}

.sat-map-minus {
    top: 62px;
}

.sat-marker {
    position: absolute;
    width: 34px;
    height: 34px;
    border-radius: 50% 50% 50% 6px;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 11px;
    font-weight: bold;
    box-shadow: 0 8px 18px rgba(15, 42, 63, 0.28);
}

.sat-marker {
    line-height: 34px;
}

.sat-marker::first-letter {
    transform: rotate(45deg);
}

.sat-marker-green { background: #00a676; }
.sat-marker-yellow { background: #f4c20d; color: #1f2d36; }
.sat-marker-red { background: #ef4444; }
.sat-marker-gray { background: #8a98a5; }

.sat-place-marker {
    position: absolute;
    width: 36px;
    height: 36px;
    border-radius: 50% 50% 50% 7px;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 11px;
    font-weight: bold;
    box-shadow: 0 8px 18px rgba(15, 42, 63, 0.28);
    cursor: pointer;
}

.sat-place-label {
    position: absolute;
    max-width: 140px;
    padding: 4px 8px;
    color: #1f2d36;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(15, 42, 63, 0.12);
    font-size: 12px;
    font-weight: bold;
    pointer-events: none;
}

.sat-sensor-marker {
    position: absolute;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 11px;
    font-weight: bold;
    box-shadow: 0 8px 18px rgba(15, 42, 63, 0.28);
    cursor: pointer;
}

.sat-sensor-label {
    position: absolute;
    max-width: 150px;
    padding: 4px 8px;
    color: #1f2d36;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(15, 42, 63, 0.12);
    font-size: 12px;
    font-weight: bold;
    pointer-events: none;
}

.sat-alert-list {
    padding: 14px;
}

.sat-alert-item {
    padding: 14px;
    border: 1px solid #e2e8ee;
    border-left-width: 5px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.sat-alert-item strong,
.sat-alert-item span {
    display: block;
}

.sat-alert-item span {
    color: #607d8b;
    margin-top: 4px;
}

.sat-alert-critical {
    border-left-color: #ef4444;
}

.sat-alert-warning {
    border-left-color: #ff9800;
}

.sat-admin-actions {
    padding: 14px;
}

.sat-action-card {
    padding: 14px;
    border: 1px solid #e2e8ee;
    border-left-width: 5px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.sat-action-card strong,
.sat-action-card span,
.sat-action-card a {
    display: block;
}

.sat-action-card span {
    color: #607d8b;
    margin-top: 5px;
    line-height: 1.35;
}

.sat-action-card a {
    margin-top: 10px;
    color: #00796b;
    font-weight: bold;
    text-decoration: none;
}

.sat-action-allowed {
    border-left-color: #009688;
}

.sat-action-blocked {
    border-left-color: #ef4444;
    background: #fff7f7;
}

.sat-territory-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 16px;
    margin-top: 16px;
}

.sat-operator-grid {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr) 360px;
    gap: 16px;
    margin-top: 16px;
}

.sat-state {
    display: inline-block;
    min-width: 76px;
    padding: 4px 8px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
}

.sat-state-red {
    background: #ef4444;
}

.sat-state-yellow {
    color: #1f2d36;
    background: #f4c20d;
}

.sat-state-green {
    background: #00a676;
}

.sat-permission-list {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.sat-permission-list span {
    display: block;
    padding: 12px;
    border-radius: 6px;
    font-weight: bold;
}

.sat-permission-ok {
    color: #00695c;
    background: #e5f5f1;
}

.sat-permission-no {
    color: #9f1239;
    background: #ffe4e6;
}

.sat-muted {
    color: #607d8b;
    margin: 8px 0 16px;
}

.sat-threshold-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 16px;
    margin-top: 16px;
}

.sat-sensor-admin-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 430px;
    gap: 16px;
    margin-top: 16px;
}

.sat-place-admin-layout {
    align-items: start;
}

.sat-threshold-table td:last-child {
    width: 90px;
}

.sat-button-small {
    min-height: 30px;
    padding: 0 10px;
    font-size: 12px;
}

.sat-button-danger {
    margin-left: 6px;
    color: #ffffff;
    background: #ef4444;
}

.sat-threshold-form {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.sat-sensor-admin-form {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.sat-threshold-form label,
.sat-sensor-admin-form label {
    color: #455a64;
    font-weight: bold;
}

.sat-threshold-form input,
.sat-threshold-form select,
.sat-sensor-admin-form input,
.sat-sensor-admin-form select,
.sat-sensor-admin-form textarea {
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid #cfd8dc;
    border-radius: 6px;
    background: #ffffff;
    font: inherit;
}

.sat-sensor-admin-form textarea {
    resize: vertical;
}

.sat-threshold-form input[readonly],
.sat-sensor-admin-form input[readonly] {
    color: #607d8b;
    background: #eef3f5;
}

.sat-form-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.sat-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.sat-place-preview {
    min-height: 130px;
    margin: 14px 0;
    border: 1px solid #d9e3ea;
    border-radius: 8px;
    background: #f8fbfc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.sat-place-preview img {
    max-width: 100%;
    max-height: 180px;
    object-fit: cover;
}

.sat-place-help {
    margin-top: -4px;
    font-size: 12px;
}

.sat-account-page {
    max-width: 620px;
    margin-top: 16px;
}

.sat-password-form {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.sat-password-form label {
    color: #455a64;
    font-weight: bold;
}

.sat-password-form input {
    width: 100%;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid #cfd8dc;
    border-radius: 6px;
    background: #ffffff;
    font: inherit;
}

.sat-inline-message {
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 12px;
    font-weight: bold;
}

.sat-inline-info {
    color: #1f4f7a;
    background: #e8f1f8;
}

.sat-inline-ok {
    color: #00695c;
    background: #e5f5f1;
}

.sat-inline-warning {
    color: #92400e;
    background: #fff3d7;
}

.sat-bottom-grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr) 360px;
    gap: 16px;
    margin-top: 16px;
}

.sat-data-card {
    min-height: 180px;
    padding: 18px;
}

.sat-donut-preview {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: conic-gradient(#009688 0 55%, #ff9800 55% 78%, #ef4444 78% 92%, #cfd8dc 92% 100%);
    color: #ffffff;
    font-size: 24px;
    font-weight: bold;
}

.sat-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

.sat-table th,
.sat-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #e2e8ee;
    text-align: left;
}

.sat-row-code {
    display: block;
    margin-top: 4px;
    color: #607d8b;
    font-size: 12px;
}

.sat-place-search label {
    display: block;
    max-width: 520px;
    font-size: 13px;
    font-weight: bold;
    color: #334155;
}

.sat-place-search input {
    width: 100%;
    min-height: 42px;
    margin-top: 6px;
    padding: 8px 10px;
    border: 1px solid #cbd5df;
    border-radius: 6px;
    font-size: 15px;
}

.sat-place-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 12px;
}

.sat-place-header .sat-muted {
    margin-bottom: 0;
}

.sat-place-header-actions {
    min-width: 440px;
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    align-items: end;
    gap: 10px;
}

.sat-place-header-actions label {
    display: block;
    font-size: 13px;
    font-weight: bold;
    color: #334155;
}

.sat-place-header-actions input {
    width: 100%;
    min-height: 38px;
    margin-top: 5px;
    padding: 7px 10px;
    border: 1px solid #cbd5df;
    border-radius: 6px;
    font-size: 14px;
}

.sat-place-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.sat-place-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #d9e3ea;
}

.sat-place-tab {
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid #d9e3ea;
    border-radius: 8px;
    color: #334155;
    background: #f8fbfc;
    font: inherit;
    font-weight: bold;
    cursor: pointer;
}

.sat-place-tab:hover,
.sat-place-tab.sat-is-active {
    color: #ffffff;
    border-color: #009688;
    background: #009688;
}

.sat-place-tab span {
    min-width: 24px;
    height: 22px;
    margin-left: 6px;
    padding: 2px 7px;
    border-radius: 999px;
    color: #ffffff;
    background: #0f344f;
    font-size: 12px;
}

.sat-place-card {
    min-height: 136px;
    padding: 10px;
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    border: 1px solid #d9e4e8;
    border-radius: 8px;
    background: #ffffff;
}

.sat-place-card:hover {
    border-color: #009688;
    box-shadow: 0 8px 18px rgba(15, 42, 63, 0.14);
}

.sat-place-card-image {
    width: 90px;
    height: 90px;
    border: 1px solid #d2dde3;
    border-radius: 6px;
    background-color: #eef3f5;
    background-position: center;
    background-size: cover;
}

.sat-place-card-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sat-place-card-body strong {
    color: #102231;
    font-size: 16px;
    line-height: 1.2;
}

.sat-place-card-body em,
.sat-place-card-body span {
    color: #547184;
    font-size: 12px;
    font-style: normal;
    line-height: 1.35;
}

.sat-place-card-count {
    font-weight: bold;
    color: #00695c !important;
}

.sat-place-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 2px;
}

.sat-place-state {
    display: inline-flex;
    width: fit-content;
    margin-top: 5px;
    padding: 4px 7px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: bold;
}

.sat-place-state-active {
    color: #00695c;
    background: #dff3ec;
}

.sat-place-state-inactive {
    color: #8a4b00;
    background: #fff1cc;
}

.sat-place-card-tags span {
    padding: 3px 6px;
    border-radius: 999px;
    color: #00695c;
    background: #e5f5f1;
    font-size: 11px;
    font-weight: bold;
}

.sat-place-card-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

@media (max-width: 980px) {
    .sat-place-header {
        display: block;
    }

    .sat-place-header-actions {
        min-width: 0;
        margin-top: 12px;
    }
}

.sat-place-pagination,
.sat-threshold-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #d9e3ea;
    color: #334155;
    font-weight: bold;
}

.sat-place-pagination span,
.sat-threshold-pagination span {
    min-width: 230px;
}

.sat-place-pagination label,
.sat-threshold-pagination label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    font-size: 13px;
}

.sat-place-pagination select,
.sat-threshold-pagination select {
    min-height: 34px;
    padding: 6px 8px;
    border: 1px solid #cbd5df;
    border-radius: 6px;
    background: #ffffff;
}

.sat-sms-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 16px;
    margin-top: 16px;
}

.sat-card-body {
    padding: 18px;
}

.sat-sms-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

.sat-sms-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border: 1px solid #d8e3ea;
    border-radius: 8px;
    background: #ffffff;
}

.sat-sms-card strong,
.sat-sms-card span,
.sat-sms-card small {
    display: block;
}

.sat-sms-card span {
    margin-top: 4px;
    color: #0f766e;
    font-weight: bold;
}

.sat-sms-card small {
    margin-top: 4px;
    color: #607d8b;
}

.sat-sms-form label {
    display: block;
    margin-top: 14px;
    margin-bottom: 6px;
    color: #334155;
    font-weight: bold;
}

.sat-sms-form input,
.sat-sms-form select {
    width: 100%;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid #cbd5df;
    border-radius: 6px;
    font-size: 15px;
}

.sat-sms-form .sat-button {
    margin-top: 16px;
}

.sat-danger-button {
    background: #f43f3f;
}

.sat-metric-small {
    font-size: 18px !important;
}

.sat-chart-preview {
    height: 120px;
    margin-top: 16px;
    display: flex;
    align-items: end;
    gap: 12px;
}

.sat-chart-preview span {
    display: block;
    width: 36px;
    background: #009688;
    border-radius: 4px 4px 0 0;
}

.sat-chart-preview span:nth-child(1) { height: 40%; }
.sat-chart-preview span:nth-child(2) { height: 70%; }
.sat-chart-preview span:nth-child(3) { height: 55%; }
.sat-chart-preview span:nth-child(4) { height: 85%; }

.sat-report-filters {
    margin-bottom: 18px;
}

.sat-report-form {
    display: grid;
    grid-template-columns: minmax(220px, 2fr) minmax(150px, 1fr) minmax(150px, 1fr) minmax(210px, 1fr) auto auto;
    gap: 14px;
    align-items: end;
}

.sat-export-form {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: flex-end;
    margin-top: 14px;
}

.sat-export-card {
    border-left: 5px solid #009688;
}

.sat-export-device-field {
    flex: 1 1 360px;
    min-width: 320px;
}

.sat-export-date-field {
    flex: 0 1 180px;
    min-width: 165px;
}

.sat-export-page-field {
    flex: 0 1 170px;
    min-width: 155px;
}

.sat-export-actions {
    flex: 1 1 300px;
    display: flex;
    gap: 8px;
    align-items: flex-end;
    justify-content: flex-start;
}

.sat-report-form label,
.sat-export-form label {
    display: block;
    font-size: 13px;
    font-weight: bold;
    color: #334155;
    margin-bottom: 6px;
}

.sat-report-form select,
.sat-report-form input,
.sat-export-form select,
.sat-export-form input {
    width: 100%;
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid #cbd5df;
    border-radius: 6px;
    font-size: 15px;
    background: #ffffff;
}

.sat-export-form input[type="date"] {
    color: #0f172a;
    background: #f8fbfc;
    border-color: #9fb5c3;
    font-weight: bold;
}

.sat-export-form .sat-button {
    min-width: 92px;
    min-height: 44px;
}

.sat-export-form select:focus,
.sat-export-form input:focus {
    outline: 2px solid rgba(0, 150, 136, 0.22);
    border-color: #009688;
}

.sat-button:disabled,
.sat-button[disabled] {
    opacity: 0.48;
    cursor: default;
}

.sat-export-results {
    margin-top: 16px;
}

.sat-panel-header-flat {
    padding: 0 0 14px;
    border-bottom: 0;
}

.sat-export-table-shell {
    max-height: 330px;
    overflow: auto;
    border: 1px solid #d9e3ea;
}

.sat-export-footer {
    min-height: 42px;
    display: grid;
    grid-template-columns: 1fr 180px 180px;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    color: #1f2d36;
    background: #e5e7eb;
    font-weight: bold;
}

.sat-export-footer-alert {
    color: #b91c1c;
}

.sat-export-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 12px 0 0;
    color: #334155;
    font-weight: bold;
}

.sat-export-pagination span {
    min-width: 260px;
    text-align: center;
}

.sat-report-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 0 0;
    border-top: 1px solid #d7e2e8;
    color: #334155;
    font-weight: bold;
}

.sat-report-pagination span {
    min-width: 280px;
    text-align: center;
}

.sat-report-pagination label {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0b2540;
}

.sat-report-pagination select {
    min-width: 72px;
    min-height: 36px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    color: #0b2540;
}

.sat-report-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.sat-report-link,
.sat-report-links a {
    min-height: 36px;
    padding: 9px 12px;
    border-radius: 6px;
    color: #00796b;
    background: #e5f5f1;
    font-weight: bold;
    text-decoration: none;
}

.sat-report-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
    gap: 16px;
    margin-top: 16px;
}

.sat-report-chart {
    min-height: 260px;
    display: flex;
    align-items: end;
    gap: 8px;
    padding: 18px 12px 10px;
    border: 1px solid #e2e8ee;
    background: repeating-linear-gradient(
        to top,
        #ffffff 0,
        #ffffff 43px,
        #edf2f7 44px
    );
    overflow-x: auto;
}

.sat-report-bar {
    min-width: 28px;
    background: #009688;
    border: 1px solid #00796b;
    border-radius: 4px 4px 0 0;
    position: relative;
}

.sat-report-bar-empty {
    background: #dbe7ee;
    border-color: #cbd5df;
}

.sat-report-bar-real {
    background: #009688;
    border-color: #00796b;
}

.sat-report-bar em {
    position: absolute;
    left: 50%;
    top: -18px;
    transform: translateX(-50%);
    font-style: normal;
    font-size: 11px;
    color: #0b2540;
    white-space: nowrap;
}

.sat-report-bar span {
    position: absolute;
    left: 50%;
    bottom: -26px;
    transform: translateX(-50%);
    font-size: 11px;
    color: #64748b;
    white-space: nowrap;
}

.sat-report-chart-histogram {
    min-height: 260px;
    padding: 28px 12px 42px;
    gap: 6px;
}

.sat-report-chart-histogram-dia,
.sat-report-chart-histogram-hoy {
    justify-content: flex-start;
}

.sat-report-chart-histogram-mes .sat-report-bar {
    flex: 1 1 0;
    min-width: 12px;
    max-width: 24px;
}

.sat-report-chart-histogram-anio {
    overflow-x: hidden;
    justify-content: space-between;
}

.sat-report-chart-histogram-anio .sat-report-bar {
    flex: 1 1 0;
    min-width: 18px;
    max-width: 38px;
}

.sat-report-empty {
    padding: 22px;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8ee;
}

.sat-histogram-toolbar {
    margin-top: 16px;
}

.sat-histogram-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 14px;
}

.sat-histogram-controls input[type="date"] {
    min-height: 36px;
    padding: 7px 10px;
    border: 1px solid #cbd5df;
    border-radius: 6px;
    font: inherit;
}

.sat-histogram-card {
    margin-top: 16px;
    padding: 0;
}

.sat-modern-histogram {
    min-height: 360px;
    padding: 24px 18px 64px;
    display: flex;
    align-items: flex-end;
    gap: 5px;
    overflow-x: auto;
    background: repeating-linear-gradient(
        to top,
        #ffffff 0,
        #ffffff 63px,
        #edf2f7 64px
    );
}

.sat-modern-histogram-dia,
.sat-modern-histogram-hoy {
    min-height: 360px;
    gap: 6px;
}

.sat-modern-histogram-mes,
.sat-modern-histogram-anio {
    min-height: 360px;
    overflow-x: hidden;
}

.sat-modern-histogram-mes {
    gap: 8px;
}

.sat-modern-histogram-anio {
    gap: 14px;
    min-height: 280px;
    padding-top: 18px;
    padding-bottom: 54px;
    justify-content: space-between;
}

.sat-modern-histogram-empty {
    min-height: 190px;
    align-items: stretch;
    padding: 18px;
    overflow-x: hidden;
}

.sat-modern-bar {
    position: relative;
    flex: 0 0 16px;
    border-radius: 4px 4px 0 0;
}

.sat-modern-histogram-dia .sat-modern-bar,
.sat-modern-histogram-hoy .sat-modern-bar {
    flex-basis: 18px;
}

.sat-modern-histogram-mes .sat-modern-bar {
    flex: 1 1 0;
    min-width: 18px;
    max-width: 46px;
}

.sat-modern-histogram-anio .sat-modern-bar {
    flex: 1 1 0;
    min-width: 42px;
    max-width: 82px;
}

.sat-modern-bar-real {
    background: #009688;
    border: 1px solid #00796b;
}

.sat-modern-bar-empty {
    background: #dbe5ea;
    border: 1px solid #c9d5dc;
}

.sat-modern-bar-value {
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%);
    margin-bottom: 4px;
    color: #334155;
    font-size: 10px;
    white-space: nowrap;
}

.sat-modern-bar-label {
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%) rotate(-55deg);
    transform-origin: top left;
    margin-top: 8px;
    color: #64748b;
    font-size: 10px;
    white-space: nowrap;
}

.sat-access-denied {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: #eef3f5;
}

.sat-access-card {
    width: 100%;
    max-width: 520px;
    padding: 28px;
    border-top: 8px solid #b91c1c;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}

.sat-access-card strong {
    display: inline-block;
    color: #00796b;
    margin-bottom: 12px;
}

.sat-access-card h1 {
    margin: 0 0 12px;
    color: #991b1b;
    font-size: 30px;
}

.sat-access-card p {
    margin: 0 0 20px;
    color: #334155;
    font-size: 17px;
}

.sat-login-body {
    min-height: 100vh;
    margin: 0;
    background: linear-gradient(135deg, #0f3b57 0%, #0f766e 45%, #f59e0b 100%);
    font-family: Arial, Helvetica, sans-serif;
}

.sat-login-shell {
    min-height: calc(100vh - 54px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

.sat-login-panel {
    width: 100%;
    max-width: 430px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 22px 52px rgba(15, 23, 42, 0.32);
    overflow: hidden;
}

.sat-login-logo-wrap {
    padding: 18px 20px 12px;
    text-align: center;
    background: #ffffff;
}

.sat-login-logo {
    max-width: 100%;
    max-height: 96px;
    object-fit: contain;
}

.sat-login-brand {
    padding: 22px 24px;
    background: #ea580c;
    color: #ffffff;
}

.sat-login-brand span {
    display: block;
    font-size: 24px;
    font-weight: 800;
}

.sat-login-brand strong {
    display: block;
    margin-top: 5px;
    font-size: 14px;
    font-weight: normal;
}

.sat-login-form {
    padding: 24px;
}

.sat-login-form label {
    display: block;
    margin: 0 0 7px;
    color: #1f2937;
    font-weight: bold;
}

.sat-login-form input[type="text"],
.sat-login-form input[type="password"] {
    width: 100%;
    min-height: 42px;
    margin: 0 0 18px;
    padding: 8px 10px;
    border: 1px solid #cbd5df;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
}

.sat-login-footer {
    height: 54px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    background: #ffffff;
    color: #334155;
    font-weight: bold;
}

.sat-access-modern {
    width: 100%;
    max-width: 760px;
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 28px;
    align-items: center;
    padding: 34px;
    background: #ffffff;
    border-radius: 8px;
    border-top: 8px solid #b91c1c;
    box-shadow: 0 22px 52px rgba(15, 23, 42, 0.32);
}

.sat-access-modern-icon {
    width: 138px;
    height: 138px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #b91c1c;
    color: #ffffff;
    font-size: 82px;
    font-weight: 800;
    line-height: 1;
}

.sat-access-modern-content span {
    display: block;
    color: #0f766e;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
}

.sat-access-modern-content h1 {
    margin: 8px 0 10px;
    color: #111827;
    font-size: 34px;
}

.sat-access-modern-content p {
    margin: 0;
    color: #475569;
    font-size: 18px;
}

.sat-access-modern-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

@media screen and (max-width: 1180px) {
    .sat-metrics,
    .sat-bottom-grid,
    .sat-territory-grid,
    .sat-operator-grid,
    .sat-threshold-layout,
    .sat-sensor-admin-layout,
    .sat-sms-layout,
    .sat-report-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sat-workspace {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 760px) {
    .sat-app-shell {
        display: block;
    }

    .sat-sidebar {
        flex-basis: auto;
        width: auto;
        height: auto;
        max-height: 50vh;
        min-height: 0;
        z-index: 100;
    }

    .sat-sidebar-nav {
        display: flex;
        overflow-x: auto;
        gap: 8px;
    }

    .sat-nav-item {
        flex: 0 0 auto;
    }

    .sat-header,
    .sat-panel-header {
        display: block;
    }

    .sat-header-status,
    .sat-header-account,
    .sat-filter-bar {
        justify-content: flex-start;
        justify-items: start;
        text-align: left;
        margin-top: 12px;
    }

    .sat-header-account {
        min-width: 0;
        max-width: none;
    }

    .sat-header-account .sat-account-actions {
        width: 100%;
        max-width: 280px;
    }

    .sat-metrics,
    .sat-bottom-grid,
    .sat-territory-grid,
    .sat-operator-grid,
    .sat-threshold-layout,
    .sat-sensor-admin-layout,
    .sat-sms-layout,
    .sat-report-grid,
    .sat-report-form,
    .sat-export-form {
        display: block;
    }

    .sat-export-form > div,
    .sat-export-actions {
        margin-bottom: 12px;
        width: 100%;
        min-width: 0;
    }

    .sat-export-actions {
        display: flex;
        flex-wrap: wrap;
    }

    .sat-main {
        padding: 12px;
    }

    .sat-access-modern {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }

    .sat-access-modern-actions {
        justify-content: center;
    }
}

/* Poblaciones de cartografia local; etiquetas sin bloquear los dispositivos. */
.sat-place-label {background:none;border:0;white-space:nowrap;color:#34433e;font-size:11px;line-height:20px;font-weight:500;text-shadow:-1px -1px 0 #fff,1px -1px 0 #fff,-1px 1px 0 #fff,1px 1px 0 #fff,0 0 4px #fff;pointer-events:none;}
.sat-place-label-city {font-weight:700;font-size:14px;color:#263830;}
.sat-place-label-town {font-weight:600;font-size:12px;}
.sat-place-label-hamlet,.sat-place-label-suburb {font-size:10px;color:#58645e;}

.sat-map-device-alert span { display:flex; align-items:center; justify-content:center; width:26px; height:26px; border:2px solid white; border-radius:50%; background:#c62828; color:white; font-size:20px; font-weight:bold; box-shadow:0 0 0 5px rgba(198,40,40,.2); }

/* Encabezado compartido en el area de formularios. */
[hidden] { display:none !important; }
.sat-common-header { display:flex;align-items:center;gap:20px; }
.sat-form-logo { width:80px;height:80px;object-fit:contain;flex-shrink:0; }
.sat-common-header .sat-header-title { flex:1; }
.sat-common-actions { display:flex;gap:18px;flex-wrap:wrap; }
.sat-nav-inert { width:100%;border:0;background:transparent;text-align:left;font:inherit;color:inherit;cursor:default; }
.sat-workspace-main,.sat-report-main { grid-template-columns:minmax(0,1fr); }
@media(max-width:640px) { .sat-common-header { flex-wrap:wrap;gap:12px; } .sat-form-logo { width:60px;height:60px; } }

/* El mapa territorial aprovecha la altura disponible de la ventana. */
.sat-territory-view .sat-map-leaflet-shell { min-height:280px; height:calc(100vh - 232px); height:calc(100dvh - 232px); }

.sat-sound-options-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;border:0;padding:0;margin:12px 0;}
.sat-sound-options-grid label {display:flex;flex-direction:column;gap:6px;font-weight:bold;}
.sat-sound-options-grid input {width:100%;min-width:0;padding:9px;border:1px solid #cbd5e1;border-radius:5px;font:inherit;font-weight:normal;}
.sat-sound-options-grid:disabled input {color:#334155;background:#f1f5f9;opacity:1;-webkit-text-fill-color:#334155;}
@media(max-width:900px){.sat-sound-options-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:600px){.sat-sound-options-grid{grid-template-columns:1fr;}}

/* Configuracion ARCO: agrupacion accesible con details/summary nativos. */
.sat-nav-group > summary.sat-nav-item {cursor:pointer;list-style:none;}
.sat-nav-group > summary::-webkit-details-marker {display:none;}
.sat-nav-group > summary::after {content:'\25B8';margin-left:auto;}
.sat-nav-group[open] > summary::after {content:'\25BE';}
.sat-nav-children .sat-nav-item {padding-left:38px;font-size:.94em;}
