        :root {
            --dpr: 1;
        }

        @font-face {
            font-family: 'OutfitVariable';
            src: url('/static/outfit-variable.ttf') format('truetype');
        }

        body {
            margin: 0;
            padding: 0;
            font-family: 'OutfitVariable', sans-serif;
            font-size: 15px;
        }

        .button {
            all: unset;
            cursor: pointer;
            user-select: none;
            font-family: inherit;
            font-size: inherit;
            display: inline-block;
        }

        button:disabled {
            filter: opacity(0.5);
            cursor: not-allowed;
            pointer-events: none;
        }

        .primary-fullwidth {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 1em 2em;
            text-align: center;
            background: #f4763e;
            color: #fff;
            font-weight: 600;
            border-radius: 1.8em;
            box-sizing: border-box;
        }


        .fullscreen-panel {
            position: fixed;
            top: 0;
            left: 0;
            background: #fff;
            height: 100vh;
            width: 100vw;
            box-sizing: border-box;
            z-index: 100;
        }

        .margin-bottom-10 {
            margin-bottom: 10px;
        }

        .f-center {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .sign-in-panel {}

        .sign-in-panel .panel-content {
            max-width: 24em;
            padding: 1.95em;
        }

        .sign-in-panel .panel-content h2 {
            font-size: 1.2em;
            margin: 0;
            color: #f4763e;
        }

        .sign-in-panel .panel-content h1 {
            margin: 0 0 1.2em 0;
        }


        .sign-in-panel .button.primary-fullwidth {
            margin-top: 2.4em;
        }

        .sign-in-panel .panel-content p {
            color: #797979;
        }


        .root-flex-container {
            display: flex;
            background: linear-gradient(5deg, #353b46, #636363);
            box-sizing: border-box;
            width: 100vw;
            height: 100vh;
            /* flex: auto; */
        }

        .root-flex-item.conveyor-selection-pane {
            width: 36em;
            min-width: 29em;
            flex-direction: column;
            padding: 1.5em 2.3em;
            box-sizing: border-box;
            gap: 0em;
        }

        .root-flex-item.conv-and-nav-header-pane {
            /* flex: auto; */
            background: #eee;
            flex-direction: column;
            flex: auto;
            display: flex;
            box-shadow: 0 0 4em 0 rgba(0, 0, 0, 0.2), 0 0 1em 0 rgba(0, 0, 0, 0.3);
        }

        .root-flex-item {
            display: flex;
        }

        .conveyor-selection-logo-container {
            width: 100%;
            display: flex;
            /* justify-content: center; */
            align-items: center;
            box-sizing: border-box;
        }

        .conveyor-selection-logo-container img.logo {
            width: 75%;
            max-width: 17em;
        }

        .sec-flex-item.conveyor-selection {
            flex: auto;
            overflow-y: auto;
        }

        .conveyor-selection-title {
            font-weight: 500;
            font-size: 1.2em;
            color: #cccccc;
            border-bottom: 0.067em solid #7b7b7b;
            padding-bottom: 0.5em;
            padding-left: 1.1em;
        }

        /* Tenant Selector Dropdown */
        .tenant-selector-container {
            position: relative;
            display: flex;
            flex-direction: column;
        }

        /* modified */
        button.tenant-selector-btn {
            padding: 1em 1.5em 0.9em 1.1em;
            background: transparent;
            color: #ffffffb8;
            font-weight: 500;
            font-size: 1.2em;
            border-bottom: 1px solid #ffffff40;
            text-align: left;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        button.tenant-selector-btn.down,
        button.tenant-selector-btn.up {
            padding-right: 2.5em;
        }
        button.tenant-selector-btn.down {
            background: transparent url(/static/icons/chevron-down-account.svg) no-repeat right 1em center;
            background-size: 0.56em;
        }
        button.tenant-selector-btn.up {
            background: transparent url(/static/icons/chevron-up-account.svg) no-repeat right 1em center;
            background-size: 0.56em;
        }

        .tenant-selector-dropdown {
            display: none;
            position: absolute;
            top: 4.2em;
            left: 0;
            right: 0;
            background: #fff;
            padding: 0.8em;
            flex-direction: column;
            gap: 0.5em;
            border-radius: 1.2em;
            box-shadow: 0 0.4em 2em 0 rgba(0, 0, 0, 0.3);
            box-sizing: border-box;
            transform: scale(0.9) translateY(-1em);
            opacity: 0;
            transition: transform 0.2s, opacity 0.2s;
            z-index: 150;
            max-height: 20em;
            overflow-y: auto;
        }

        .tenant-selector-dropdown.open {
            transform: scale(1) translateY(0);
            opacity: 1;
        }

        button.tenant-selector-item {
            all: unset;
            display: flex;
            flex-direction: column;
            padding: 0.9em 1.1em;
            background: #f5f5f5;
            border-radius: 0.9em;
            cursor: pointer;
            transition: background 0.2s;
            gap: 0.3em;
        }

        button.tenant-selector-item:hover {
            background: #e8e8e8;
        }

        button.tenant-selector-item.active {
            background: #ff9e74;
            color: #fff;
        }

        button.tenant-selector-item.active .tenant-item-role {
            color: #ffffffcc;
        }

        .tenant-item-name {
            font-weight: 500;
            font-size: 1em;
            color: #2f2f2f;
        }

        button.tenant-selector-item.active .tenant-item-name {
            color: #fff;
        }

        .tenant-item-role {
            font-size: 0.85em;
            color: #888;
            font-weight: 450;
        }

        .conveyor-selection-footer .button {
            padding: 0.75em 1em;
            background: #ffffff1c;
            color: #fff;
            border-radius: 0.88em;
            flex: auto;
            display: flex;
            justify-content: center;
        }

        .conveyor-selection-footer {
            gap: 1.25em;
        }

        .nav-header {
            display: flex;
            flex-direction: row;
            box-sizing: border-box;
            height: 6.1em;
            justify-content: left;
            align-items: center;
            padding: 0 2.9em;
            gap: 3.4em;
        }

        .nav-conveyor-name {
            color: #2f2f2f;
            font-size: 1.88em;
            font-weight: 500;
            text-overflow: ellipsis;
            white-space: nowrap;
            overflow: hidden;
        }

        .nav-buttons .button {
            padding: 0.75em 1.2em 0.75em 2.58em;
            border-radius: 1em;
            color: #7f7f7f;
            font-weight: 500;
            transition: filter 0.2s;
            background-color: transparent;
        }

        .nav-buttons .button.active {
            background-color: #e4e4e4 !important;
            filter: brightness(0.80) contrast(1.5) !important;
            transform: unset !important;
        }

        .nav-buttons .button:hover {
            filter: brightness(0.50);
        }

        .nav-buttons {
            flex: auto;
            display: flex;
            justify-content: center;
        }

        .user-account-dropdown {
            display: none;
        }

        button.button.email-chevron-btn {
            padding: 0.625em 1.19em 0.63em 0;
            color: #7f7f7f;
            font-weight: 500;
            background: url(/static/icons/chevron-up-account.svg) no-repeat right 0.06em center;
            background-size: 0.56em;
        }

        button.button.email-chevron-btn.down {
            background: url(/static/icons/chevron-down-account.svg) no-repeat right 0.06em center;
            background-size: 0.56em;
        }

        .nav-account-container {
            display: flex;
            justify-content: right;
            position: relative;
        }

        .nav-buttons .button.icon-button-monitor {
            background: transparent url(/static/icons/monitor-mag-glass.svg) no-repeat left 1.1em center;
            background-size: 0.88em;
        }

        .nav-buttons .button.icon-button-insights {
            background: transparent url(/static/icons/insights.svg) no-repeat left 1.1em center;
            background-size: 1em;
        }

        .nav-buttons .button.icon-button-configure {
            background: transparent url(/static/icons/conv-configure.svg) no-repeat left 1.1em center;
            background-size: 1em;
        }

        .nav-buttons .button.icon-button-alerts {
            background: transparent url(/static/icons/alerts.svg) no-repeat left 1.1em center;
            background-size: 1.13em;
        }


        .conveyor-selection-list {
            padding: 1.3em 0;
        }

        .conveyor-selection-item-name {
            font-size: 1.06em;
            font-weight: 450;
            /* width: min-content; */
            /* flex: auto; */
            white-space: nowrap;
            text-overflow: ellipsis;
            overflow: hidden;
        }

        .conveyor-selection-item-health {
            color: #b5e5ba;
            font-weight: 450;
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .conveyor-selection-item-health svg {
            flex-shrink: 0;
        }

        .conveyor-selection-item-health.unknown {
            color: #d1d1d1;
        }

        .conveyor-selection-item-health.good {
            color: #9fffb9;
        }

        .conveyor-selection-item-health.fair {
            color: #ffde82;
        }

        .conveyor-selection-item-health.poor {
            color: #ff9165;
        }

        .conveyor-selection-item-health.critical,
        .conveyor-selection-item-health.health-critical {
            color: #ff7979;
        }

        .conveyor-selection-item-health.health-stopped {
            color: #ffffff75;
            font-style: italic;
        }

        .conveyor-selection-item-health.health-good {
            color: #9fffb9;
        }

        .conveyor-selection-item-health.health-fair {
            color: #ffde82;
        }

        .conveyor-selection-item-health.health-poor {
            color: #ff9165;
        }

        .conveyor-selection-item {
            padding: 1.4em 1.5em;
            color: #fff;
            border-radius: 1.5em;
            /* position: absolute; */
            right: 0;
            /* width: calc(100% + 2.3em); */
            box-sizing: border-box;
            display: flex;
            gap: 1.31em;
            align-items: center;
            justify-content: space-between;
        }

        .conveyor-selection-item.active {
            background: #ffffff1f;
            box-shadow: 2px 7px 14px 0px rgba(0, 0, 0, 0.04);
        }

        .conveyor-selection-item-ss-count {
            display: flex;
            flex-direction: column;
            font-size: 0.88em;
            justify-content: center;
            color: #c5c5c5;
            align-items: flex-end;
            white-space: nowrap;
        }

        .conveyor-selection-item-name-health {
            flex: auto;
            overflow: hidden;
        }


        .user-account-dropdown {
            position: absolute;
            top: 4em;
            right: 0em;
            background: #fff;
            padding: 1.7em;
            flex-direction: column;
            gap: 11px;
            border-radius: 2em;
            box-shadow: 1px 1px 64px 0 rgba(0, 0, 0, 0.12);
            min-width: 17em;
            box-sizing: border-box;
            transform: scale(0.6) translateY(-5em);
            opacity: 0;
            transition: transform 0.2s, opacity 0.2s;
            z-index: 150;
        }

        .user-account-dropdown.open {
            transform: scale(1) translateY(0);
            opacity: 1;
        }

        .user-account-name {
            font-weight: 500;
            font-size: 1.2em;
            max-width: 16em;
            white-space: nowrap;
            margin-bottom: 12px;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .user-account-dropdown .button {
            padding: 10px 12px;
            /* display: flex; */
            display: flex;
            background: #efefef;
            border-radius: 11px;
            justify-content: center;
            color: #555;
            font-weight: 450;
            transition: background 0.2s;
        }

        .user-account-dropdown .button:hover {
            background: #e1e1e1;
        }

        .dropdown-locale-row {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 4px;
            justify-content: space-between;
        }

        .dropdown-locale-label {
            font-size: 0.95em;
            color: #888;
            white-space: nowrap;
        }

        .locale-selector {
            flex: 1;
            padding: 6px 2em 6px 10px;
            border-radius: 8px;
            border: 1px solid #ddd;
            font-size: 0.9em;
            background: #f8f8f8 url(/static/icons/chevron-down-account.svg) no-repeat right 0.7em center;
            background-size: 0.5em;
            -webkit-appearance: none;
            appearance: none;
            background: #f8f8f8;
        }

        .conveyor-selection-item-alerts {
            width: 1.4em;
            height: 1.4em;
            font-size: 0.9em;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #ff8787;
            border-radius: 50%;
            font-weight: 500;
        }

        .conveyor-alert-badge {
            background: #f0726f;
            color: #fff;
            font-size: 0.7em;
            font-weight: 600;
            padding: 2px 6px;
            border-radius: 10px;
            min-width: 5px;
            text-align: center;
            line-height: 1.3;
            flex-shrink: 0;
            align-self: center;
        }

        .nav-alert-badge {
            position: absolute;
            top: 5px;
            left: 24px;
            background: #f0726f;
            color: #fff;
            font-size: 0.65em;
            font-weight: 700;
            padding: 1px 5px;
            border-radius: 8px;
            min-width: 6px;
            text-align: center;
            line-height: 1.4;
            pointer-events: none;
        }

        .nav-alert-badge.hidden {
            display: none;
        }

        .nav-buttons .button {
            position: relative;
        }

        .conveyor-interface {
            display: flex;
            width: 100%;
            flex: auto;
            height: 100%;
            overflow: hidden;
        }

        .monitor-pane {
            display: flex;
            flex: auto;
            gap: 2em;
            padding: 0 2em 2em 2em;
            flex-wrap: wrap;
            height: 100%;
            overflow: hidden;
            align-content: flex-start;
            box-sizing: border-box;
        }

        .configure-pane {
            display: flex;
            flex: 1;
            height: calc(100% - 2em);
            /* overflow: hidden; */
            /* margin: 0 3em; */
            margin: 0 2em 2em 2em;
            border-radius: 2.8em;
            overflow: hidden;
        }

        .configure-layout {
            display: flex;
            flex: 1;
            height: 100%;
            overflow: hidden;
        }

        .configure-tabs {
            width: 16em;
            min-width: 16em;
            background: #fafafa;
            border-right: 1px solid #e8e8e8;
            display: flex;
            flex-direction: column;
            padding: 1.5em 0;
            gap: 0.3em;
        }

        .configure-tab-btn {
            all: unset;
            padding: 0.9em 1.5em;
            cursor: pointer;
            color: #888;
            font-weight: 500;
            border-right: 2px solid transparent;
            transition: all 0.2s;
            text-align: left;
            font-size: 0.95em;
        }

        .configure-tab-btn:hover {
            background: #f2f2f2;
            color: #666;
        }

        .configure-tab-btn.active {
            color: #f4763e;
            border-right-color: #f4763e;
            background: #fff;
        }

        .configure-content-wrapper {
            flex: 1;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        .maintenance-banner {
            display: none;
            background: linear-gradient(90deg, #fff3cd 0%, #fff9e6 100%);
            border-bottom: 1px solid #ffc107;
            padding: 1em 2em;
        }

        .maintenance-banner-content {
            display: flex;
            align-items: center;
            gap: 0.8em;
            color: #856404;
            font-weight: 500;
        }

        .banner-icon {
            font-size: 1.3em;
        }

        .configure-tab-content {
            flex: 1;
            overflow-y: auto;
            padding: 2em 2.5em;
            background: #fff;
        }

        .configure-section-title {
            font-size: 1.8em;
            font-weight: 600;
            color: #2f2f2f;
            margin: 0 0 0.5em 0;
        }

        .configure-section-description {
            color: #666;
            margin-bottom: 2em;
            font-size: 1.05em;
        }

        .configure-form {
            max-width: 45em;
        }

        .form-actions {
            display: flex;
            gap: 1em;
            margin-top: 2em;
        }

        .conveyor-id-badge {
            display: inline-block;
            padding: 0.6em 1.2em;
            background: #e8f4f8;
            color: #0277bd;
            border-radius: 0.5em;
            font-family: 'Courier New', monospace;
            font-weight: 600;
            font-size: 0.95em;
            border: 1px solid #b3e5fc;
        }

        .configure-permission-error {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 4em 2em;
            text-align: center;
        }

        .configure-error-icon {
            font-size: 4em;
            margin-bottom: 0.5em;
            opacity: 0.3;
        }

        .configure-error-title {
            font-size: 1.5em;
            font-weight: 600;
            color: #2f2f2f;
            margin-bottom: 0.5em;
        }

        .configure-error-message {
            color: #666;
            max-width: 28em;
        }

        .configure-stub {
            padding: 2em 0;
        }

        .configure-stub-message {
            color: #888;
            font-style: italic;
            padding: 2em;
            background: #f9f9f9;
            border-radius: 0.9em;
            border: 1px dashed #ddd;
            text-align: center;
        }

        .maintenance-mode-control {
            margin-bottom: 2em;
        }

        .configure-list-container {
            margin-top: 1.5em;
        }

        /* Maintenance Tab - Roller List */
        .roller-list-wrapper {
            margin-top: 2em;
        }

        .roller-filters {
            display: flex;
            gap: 1em;
            margin-bottom: 1.5em;
            align-items: center;
        }

        .roller-filters .search-input {
            flex: 1;
            max-width: 25em;
        }

        .roller-table {
            width: 100%;
            border-collapse: collapse;
            background: #fff;
            border-radius: 0.9em;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        }

        .roller-table thead {
            background: #f5f5f5;
        }

        .roller-table th {
            padding: 1em;
            text-align: left;
            font-weight: 600;
            color: #2f2f2f;
            font-size: 0.9em;
            border-bottom: 2px solid #e2e2e2;
        }

        .roller-table td {
            padding: 1em;
            border-bottom: 1px solid #f0f0f0;
            display: table-cell;
        }

        .roller-table tr:last-child td {
            border-bottom: none;
        }

        .roller-table tbody tr:hover {
            background: #fafafa;
        }

        .roller-sn {
            font-weight: 600;
            color: #2f2f2f;
            font-family: 'Courier New', monospace;
            font-size: 0.9em;
        }

        .roller-sensors {
            display: flex;
            flex-direction: column;
            gap: 0.5em;
        }

        .sensor-info {
            display: flex;
            align-items: center;
            gap: 0.8em;
        }

        .sensor-sn {
            font-size: 0.8em;
            color: #666;
        }

        .sensor-last-seen {
            font-size: 0.75em;
            color: #999;
            background: #f5f5f5;
            padding: 0.2em 0.5em;
            border-radius: 0.3em;
        }

        .health-badge {
            display: inline-block;
            padding: 0.4em 0.8em;
            border-radius: 0.5em;
            font-size: 0.85em;
            font-weight: 600;
        }

        .health-badge.health-good {
            background: #daf9e3;
            color: #548160;
        }

        .health-badge.health-fair {
            background: #f8f5d6;
            color: #989149;
        }

        .health-badge.health-poor {
            background: #ffe3d1;
            color: #9f7053;
        }

        .health-badge.health-critical {
            background: #ffd4d4;
            color: #c94848;
        }

        .position-btn {
            padding: 0.5em 1em;
            background: #e8f4f8;
            color: #0277bd;
            border-radius: 0.5em;
            font-weight: 500;
            font-family: 'Courier New', monospace;
            font-size: 0.9em;
        }

        .position-btn:hover:not(:disabled) {
            background: #b3e5fc;
        }

        .position-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .roller-actions {
            display: flex;
            gap: 0.5em;
        }

        .loading-message,
        .empty-message {
            padding: 3em;
            text-align: center;
            color: #888;
            font-style: italic;
        }

        /* Pagination Controls */
        .pagination-controls {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 1em 0;
            margin: 0.5em 0;
            border-bottom: 1px solid #f0f0f0;
        }

        .pagination-controls:last-of-type {
            border-bottom: none;
            border-top: 1px solid #f0f0f0;
        }

        .pagination-info {
            font-size: 0.9em;
            color: #666;
            font-weight: 500;
        }

        .pagination-buttons {
            display: flex;
            gap: 0.5em;
        }

        .pagination-btn {
            padding: 0.5em 1.2em;
            font-size: 0.9em;
            background: #fff;
            border: 1px solid #d0d0d0;
            color: #2f2f2f;
            border-radius: 0.5em;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .pagination-btn:hover:not(:disabled) {
            background: #f5f5f5;
            border-color: #f4763e;
            color: #f4763e;
        }

        .pagination-btn:disabled {
            opacity: 0.4;
            cursor: not-allowed;
            color: #aaa;
        }

        /* Position Picker Overlay */
        .position-picker-overlay {
            position: fixed;
            z-index: 10000;
        }

        .position-picker-container {
            background: #fff;
            border-radius: 0.8em;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
            min-width: 20em;
            border: 1px solid #e0e0e0;
        }

        .position-picker-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 1em 1.2em;
            border-bottom: 1px solid #f0f0f0;
            font-weight: 600;
            font-size: 1em;
            color: #2f2f2f;
        }

        .position-picker-close {
            background: none;
            border: none;
            font-size: 1.8em;
            line-height: 0.6;
            color: #999;
            cursor: pointer;
            padding: 0;
            width: 1.2em;
            height: 1.2em;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 0.3em;
            transition: all 0.2s ease;
        }

        .position-picker-close:hover {
            background: #f5f5f5;
            color: #333;
        }

        .position-picker-body {
            padding: 1.2em;
            display: flex;
            flex-direction: column;
            gap: 1em;
        }

        .position-picker-field {
            display: flex;
            flex-direction: column;
            gap: 0.4em;
        }

        .position-picker-label {
            font-size: 0.85em;
            font-weight: 600;
            color: #555;
        }

        .position-picker-input-group {
            display: flex;
            align-items: center;
            gap: 0.5em;
        }

        .position-picker-arrow {
            background: #f5f5f5;
            border: 1px solid #d0d0d0;
            width: 2.2em;
            height: 2.2em;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 0.4em;
            font-size: 1.2em;
            color: #555;
            cursor: pointer;
            transition: all 0.2s ease;
            padding: 0;
        }

        .position-picker-arrow:hover {
            background: #e8e8e8;
            border-color: #f4763e;
            color: #f4763e;
        }

        .position-picker-input {
            flex: 1;
            padding: 0.6em 0.8em;
            border: 1px solid #d0d0d0;
            border-radius: 0.5em;
            font-size: 1em;
            text-align: center;
            font-family: 'Courier New', monospace;
            font-weight: 600;
        }

        .position-picker-select {
            flex: 1;
            padding: 0.6em 0.8em;
            border: 1px solid #d0d0d0;
            border-radius: 0.5em;
            font-size: 0.95em;
            background: #fff;
            cursor: pointer;
        }

        .position-picker-preview {
            margin-top: 0.5em;
            padding: 0.8em;
            background: #f8f9fa;
            border-radius: 0.5em;
            text-align: center;
            border: 1px solid #e8e8e8;
        }

        .position-preview-label {
            font-size: 0.85em;
            color: #666;
        }

        .position-preview-text {
            font-family: 'Courier New', monospace;
            font-size: 1.1em;
            font-weight: 600;
            margin-left: 0.3em;
        }

        .position-picker-footer {
            display: flex;
            gap: 0.8em;
            padding: 1em 1.2em;
            border-top: 1px solid #f0f0f0;
            justify-content: flex-end;
        }

        /* Replace Roller Confirmation Modal */
        .replace-modal .modal-content {
            max-width: 35em;
        }

        .replace-section {
            background: #f8f9fa;
            border-radius: 0.8em;
            padding: 1.2em;
            margin-bottom: 1em;
        }

        .replace-section-title {
            font-size: 1em;
            font-weight: 600;
            color: #2f2f2f;
            margin-bottom: 0.8em;
        }

        .roller-details {
            display: flex;
            flex-direction: column;
            gap: 0.6em;
        }

        .detail-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.95em;
        }

        .detail-label {
            color: #666;
            font-weight: 500;
        }

        .detail-value {
            color: #2f2f2f;
            font-weight: 600;
        }

        .detail-value.monospace {
            font-family: 'Courier New', monospace;
            background: #fff;
            padding: 0.3em 0.6em;
            border-radius: 0.4em;
            border: 1px solid #e0e0e0;
        }

        .replace-arrow {
            text-align: center;
            font-size: 2em;
            color: #f4763e;
            margin: 0.5em 0;
        }

        .replace-warning {
            background: #fff8e1;
            border: 1px solid #ffd54f;
            border-radius: 0.6em;
            padding: 1em;
            display: flex;
            gap: 0.8em;
            align-items: flex-start;
            margin-top: 1em;
            font-size: 0.9em;
            color: #666;
        }

        .warning-icon {
            font-size: 1.3em;
        }

        .conveyor-interface-section {
            background: #fff;
            border-radius: 2.8em;
            padding: 2.5em;
            box-sizing: border-box;
            display: flex;
            box-shadow: 0 0.4em 2em 0 rgba(0, 0, 0, 0.05);
            /* width: calc(50% - 1em); */
        }

        .conveyor-interface-section.section-half {
            width: calc(50% - 1em);
            height: calc(50% - 1em);
            min-height: 28em;
        }


        .conveyor-interface-section.section-full {
            width: calc(100%);
            height: calc(50% - 1em);

        }

        .monitor-sslist-filters-container {
            position: relative;
        }

        .monitor-sslist-filters-dropdown {
            display: none;
            position: absolute;
            top: 3em;
            right: -100%;
            background: #fff;
            padding: 1.7em;
            flex-direction: column;
            gap: 11px;
            border-radius: 2em;
            box-shadow: 0 0 5em 0 rgba(0, 0, 0, 0.25);
            min-width: 24em;
            box-sizing: border-box;
            transform: scale(0.6) translateY(-5em);
            opacity: 0;
            transition: transform 0.2s, opacity 0.2s;
            z-index: 150;
        }

        .monitor-sslist-filters-dropdown.open {
            transform: scale(1) translateY(0);
            opacity: 1;
        }

        .ss-list-table-header-item {
            font-weight: 450;
            color: #a1a1a1 !important;
            white-space: nowrap;
            border-bottom: 0.066667em solid #eee;
            cursor: pointer;
            user-select: none;
            font-size: 0.88em;
            position: sticky;
            margin: -1.2em 0;
            top: -1.2em;
            padding: 1em 0.5em 1em 0 !important;
            z-index: 1;
        }



        .ss-list-table-header>div:first-child {
            margin-left: -1.2em;
            padding-left: 1.2em !important;
        }

        .ss-list-table-header>div:last-child {
            margin-right: -1.2em;
            padding-right: 1.2em !important;
        }

        .ss-list-table-header-item.active {
            color: #333 !important;
        }



        .ss-list-table-container {
            width: 100%;
            overflow-y: auto;
            /* overflow-x: visible; */
            height: 100%;
            display: flex;
            flex-direction: column;
            position: relative;
            padding: 1em;
            margin: -1em;
        }

        .ss-list-table {
            display: grid;
            grid-template-columns: 1fr 2fr 1fr 1fr 1fr 1fr;
            width: 100%;
        }

        .ss-list-table-header,
        .ss-list-table-body-row {
            display: contents;
        }

        .ss-list-table-header>div,
        .ss-list-table-body-row>div {
            padding: 0 0.5em 0.5em 0;
            box-sizing: border-box;
            background-color: white;
            color: #333;
            user-select: none;
        }

        .ss-list-table-body-row>div {
            padding: 1em 0em;
            white-space: nowrap;
            overflow: hidden;
            display: flex;
            align-items: baseline;
            flex-direction: column;
            justify-content: center;
        }

        .ss-list-table-body-row>div:first-child {
            border-radius: 1em 0 0 1em;
            padding-left: 1em;
            margin-left: -1em;
        }

        .ss-list-table-body-row:has(> *:hover)>.ss-list-col {
            background: #f5f5f5;
        }

        .ss-list-table-body-row.active:has(> *:hover)>.ss-list-col {
            background: #eeeeee;
        }


        .ss-list-table-body-row.active>div {
            background: #eeeeee;
        }

        .ss-list-table-body-row>div:last-child {
            border-radius: 0 1em 1em 0;
            padding-right: 1em;
            margin-right: -1em;
        }

        .ss-list-table-header {
            background-color: #f2f2f2;
            position: sticky;
            top: 0;
            z-index: 10;
        }

        .ss-list-table-body-row:nth-child(even) {
            background-color: #f9f9f9;
        }


        .ss-list-table-body .ss-list-table-body-row:first-child .ss-list-col {
            /* background: #333 !important; */
            margin-top: 2em;
        }


        .conveyor-interface-section.section-half.sensor-seal-list {
            flex-direction: column;
            gap: 1em;
        }

        .conveyor-interface-section.configure-gateways {
            flex-direction: column;
            gap: 1em;
        }

        .gateway-connectivity-settings-modal {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .gateway-connectivity-settings-modal label {
            margin-top: 10px;
        }

        .conveyor-interface .section-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1em;
        }

        .conveyor-interface .section-header-title {
            font-size: 1.4em;
            font-weight: 450;
            flex: auto;
        }

        .conveyor-selection-empty {
            color: #ffffff80;
            padding: 20px;
        }

        .section-header-title {}

        .section-header .button {
            padding: 0.6em 1em;
            background: #f5f5f5;
            border-radius: 0.85em;
            white-space: nowrap;
            color: #666;
        }

        .section-header input.input.search {
            font-family: inherit;
            font-size: inherit;
            padding: 0.6em 1em;
            border: none;
            outline: none;
            background: #f5f5f5;
            border-radius: 0.85em;
            width: 7em;
        }

        button.button.icon-button-filter {
            background: #f5f5f5 url(/static/icons/conv-configure.svg) no-repeat left 1em center;
            background-size: 1em;
            padding-left: 2.6em;
        }

        img.ss-list-table-header-sort-icon {
            width: 0.55em;
            margin-left: 0.25em;
        }


        .ss-list-table-body {
            display: contents;
        }

        .ss-list-install-pos {
            font-weight: 450;
            font-size: 1.03em;
        }
        .unassigned-badge {
            font-size: 0.7em;
            background: #eee;
            padding: 0.1em 0.3em;
            border-radius: 0.4em;
            transform: translateX(-0.3em);
            display: inline-block;
            color: #999;
            font-weight: 400;
        }

        .ss-list-sernum {
            font-size: 0.7em;
            white-space: nowrap;
            font-weight: 500;
            color: #959595;
        }

        .ss-list-sensors-col-content {
            display: flex;
            flex-wrap: wrap;
            flex-direction: column;
            gap: 3px;
        }

        .sensor-mini-badge {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            font-size: 0.85em;
            white-space: nowrap;
        }

        /* Health-colored serial number badge */
        .sensor-sn {
            font-size: 0.8em;
            font-weight: 500;
            border-radius: 5px;
            padding: 2px 5px;
        }

        .sensor-health-good {
            color: #2e7d32;
            background: #b2d9bd5e;
        }

        .sensor-health-fair {
            color: #989149;
            background: #f8f5d6;
        }

        .sensor-health-poor {
            color: #e65100;
            background: #f5c6a15e;
        }

        .sensor-health-critical {
            color: #c62828;
            background: #f5a3a35e;
        }

        /* Online status dot */
        .sensor-online-dot {
            width: 7px;
            height: 7px;
            border-radius: 50%;
            flex-shrink: 0;
        }

        .sensor-online-dot.online {
            background: #4caf50;
        }

        .sensor-online-dot.offline {
            background: #bbb;
        }

        .sensor-time-badge {
            font-size: 0.85em;
            color: #999;
        }

        mark.search-match {
            background: rgba(255, 200, 0, 0.35);
            color: inherit;
            border-radius: 2px;
            padding: 0;
        }

        .ss-list-search-match-hint {
            font-size: 0.7em;
            color: #b08800;
            font-family: 'Courier New', monospace;
            white-space: nowrap;
        }

        .ss-list-temperature {
            font-weight: 450;
            font-size: 1.03em;
        }

        .ss-list-vibration {
            font-weight: 450;
            font-size: 1.03em;
        }

        .ss-list-rpm {
            font-weight: 450;
            font-size: 1.03em;
        }

        .ss-list-health {
            font-weight: 500;
            font-size: 0.73em;
            padding: 0.3em 0.5em;
            border-radius: 0.5em;
            text-align: center;
            max-width: 7em;
        }

        .ss-list-trend {
            font-size: 0.7em;
            white-space: nowrap;
            font-weight: 500;
            color: #959595;
        }

        .ss-list-table-body-row {
            /* padding: 10px; */
            background: #ccc;
        }

        .loader-badge {
            padding: 0.8em 1em;
            background: #f5f5f5;
            color: #444;
            font-weight: 500;
            border-radius: 1em;
        }

        .ss-list-table-overlay {
            display: flex;
            flex: auto;
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.6);
            /* height: 100%; */
        }

        .f-badge-container {
            display: flex;
            width: 100%;
            align-items: center;
            justify-content: center;
        }


        .configure-inline-list-header {
            background-color: #f2f2f2;
            position: sticky;
            top: 0;
            z-index: 10;
        }

        .configure-inline-list-header .item {
            font-weight: 450;
            color: #a1a1a1 !important;
            white-space: nowrap;
            border-bottom: 0.066667em solid #eee;
            cursor: pointer;
            user-select: none;
            font-size: 0.88em;
            position: sticky;
            margin: -1.2em 0;
            top: -1.2em;
            padding: 1em 0.5em 1em 0 !important;
        }

        .configure-inline-list-header>div,
        .configure-inline-list-table-body-row>div {
            padding: 0 0.5em 0.5em 0;
            box-sizing: border-box;
            background-color: white;
            color: #333;
            user-select: none;
        }


        .configure-inline-list {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            width: 100%;
        }

        .configure-inline-list-container {
            width: 100%;
            overflow-y: auto;
            /* overflow-x: visible; */
            height: 100%;
            display: flex;
            flex-direction: column;
            position: relative;
            padding: 1em;
            margin: -1em;
        }

        .configure-inline-list-header,
        .configure-inline-list-table-body-row {
            display: contents;
        }



        .configure-pane-error .button {
            padding: 0.75em 2.5em;
            border-radius: 1em;
            color: #434343;
            font-weight: 500;
            transition: filter 0.2s;
            background: #dddddd;
        }

        .configure-pane-error {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 2em;
            width: 100%;
            gap: 1em;
        }

        .configure-pane-error-title {
            font-size: 1.8em;
            font-weight: 500;
        }

        .configure-pane-error-message {
            color: #555;
        }


        /* ── Alerts Page ── */
        .alerts-pane {
            display: flex;
            flex: 1;
            height: calc(100% - 2em);
            margin: 0 2em 2em 2em;
            border-radius: 2.8em;
            overflow: hidden;
            background: #fff;
        }
        .alerts-layout {
            display: flex;
            flex-direction: column;
            flex: 1;
            height: 100%;
            overflow: hidden;
        }
        .alerts-list-scroll {
            flex: 1;
            min-height: 0;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            padding: 0 2.5em 2em 2.5em;
            box-sizing: border-box;
        }
        .alerts-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 1.8em 2.5em 1em 2.5em;
            gap: 12px;
            flex-shrink: 0;
        }
        .alerts-header h2 {
            margin: 0;
            font-size: 1.3em;
            font-weight: 600;
        }
        .alerts-list-container {
            flex: 1;
            overflow-y: auto;
            padding: 0 2.5em 2em 2.5em;
        }
        .alert-row {
            display: flex;
            align-items: flex-start;
            gap: 14px;
            padding: 14px 0;
            border-bottom: 1px solid #f0f0f0;
        }
        .alert-row:last-child {
            border-bottom: none;
        }
        .alert-severity-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            flex-shrink: 0;
            margin-top: 5px;
        }
        .alert-row-content {
            flex: 1;
            min-width: 0;
        }
        .alert-row-title {
            font-weight: 500;
            font-size: 0.95em;
            margin-bottom: 3px;
        }
        .alert-row-desc {
            font-size: 0.85em;
            color: #666;
            line-height: 1.4;
        }
        .alert-row-time {
            font-size: 0.78em;
            color: #aaa;
            margin-top: 4px;
        }
        .alert-row-actions {
            display: flex;
            align-items: center;
            gap: 6px;
            flex-shrink: 0;
            align-self: center;
        }
        .alert-dismiss-btn {
            font-size: 0.8em;
            padding: 5px 12px;
            border-radius: 8px;
        }
        .alert-dismissed-label {
            font-size: 0.8em;
            color: #bbb;
            font-style: italic;
        }
        .alert-severity-badge {
            font-size: 0.7em;
            font-weight: 600;
            padding: 2px 8px;
            border-radius: 6px;
            text-transform: uppercase;
            letter-spacing: 0.03em;
        }
        .alert-severity-badge.severity-critical { background: #fde8e8; color: #c62828; }
        .alert-severity-badge.severity-warning { background: #fff3e0; color: #e65100; }
        .alert-severity-badge.severity-info { background: #e3f2fd; color: #1565c0; }

        .conveyor-interface-section.section-full-flex-height {
            width: calc(100%);
        }




        .conveyor-interface-section.section-half.sensor-seal-details {
            flex-direction: column;
        }

        .section-header-pos-sernum {
            /* flex: auto; */
        }

        .section-header-pos {
            font-size: 1.4em;
            font-weight: 450;
            flex: auto;
        }

        .section-header-sernum {
            color: #888;
            font-weight: 450;
            font-size: 0.9em;
        }

        .health-score-badge {
            font-family: inherit;
            font-size: inherit;
            padding: 0.6em 1em;
            border: none;
            outline: none;
            background: #daf9e3;
            color: #548160;
            border-radius: 0.85em;
            font-weight: 450;
        }

        .ss-details-interactive-graph {
            flex: auto;
            overflow: hidden;
            position: relative;
        }

        .ss-details-interactive-graph .graph-footer {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            z-index: 2;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(4px);
            padding: 0.5em 1em;
        }

        .ss-details-interactive-graph.fullscreen-mode {
            position: fixed;
            inset: 0;
            z-index: 150;
            background: #fff;
            flex: none;
        }

        .sensor-seal-details .section-footer .button {
            padding: 0.6em 1em;
            background: #f5f5f5;
            border-radius: 0.85em;
            color: #666;
            transition-duration: 0.3s;
        }

        .sensor-seal-details .section-footer .button:hover {
            background: #ddd;
            color: #333;
        }


        .sensor-seal-details .section-footer {
            display: flex;
            gap: 1em;
            /* justify-content: space-between; */
        }

        .sensor-seal-details .dropdown-selector {
            all: unset;
            /* border: none; */
            /* outline: none; */
            cursor: pointer;
            user-select: none;
            font-family: inherit;
            font-size: inherit;
            display: inline-block;
            padding: 0.6em 2em 0.6em 1em;
            background: #f5f5f5 url(/static/icons/chevron-down-account.svg) no-repeat right 0.86em center;
            border-radius: 0.85em;
            background-size: 0.6em;
            color: #666;
            transition-duration: 0.3s;
        }

        .sensor-seal-details .dropdown-selector:hover {
            background-color: #ddd;
            color: #333;
        }

        .section-header-meas-time {
            flex: auto;
            display: flex;
            color: #888;
            justify-content: end;
        }


        .health-score-badge.unknown {
            color: #444;
            background: #ddd;
        }

        .ss-list-health.unknown {
            color: #444;
            background: #ddd;
        }

        .health-score-badge.good {
            color: #548160;
            background: #daf9e3;
        }

        .ss-list-health.good {
            color: #548160;
            background: #daf9e3;
        }

        .ss-list-table-body-row.active>div .ss-list-health.good {
            background: #7fba90;
            color: #fff;
        }

        .health-score-badge.fair {
            color: #989149;
            background: #f8f5d6;
        }

        .ss-list-health.fair {
            color: #989149;
            background: #f8f5d6;
        }

        .ss-list-table-body-row.active>div .ss-list-health.fair {
            background: #dbd6a1;
            color: #736e35;
        }

        .health-score-badge.poor {
            color: #9f7053;
            background: #ffe3d1;
        }

        .ss-list-health.poor {
            color: #9f7053;
            background: #ffe3d1;
        }

        .ss-list-table-body-row.active>div .ss-list-health.poor {
            background: #d3a484;
            color: #fff;
        }

        .health-score-badge.critical {
            color: #c94848;
            background: #ffd4d4;
        }

        .ss-list-health.critical {
            color: #c94848;
            background: #ffd4d4;
        }



        div#graph-panel {
            height: 100%;
            width: 100%;
        }

        .sensor-seal-demo-graph {
            width: 100%;
            height: 100%;
        }

        .graph-canvas {
            width: 100%;
            height: 100%;
            height: 100%;
            object-fit: cover;
        }



        .time-selector-popup {
            display: flex;
            position: absolute;
            background: #fff;
            border-radius: 1em;
            box-shadow: 1px 4px 15px 0 rgba(0, 0, 0, 0.06);
            padding: 1.5em;
            gap: 1em;
            top: -76%;
            left: -122%;
        }

        .go-to-time-btn {
            position: relative;
        }

        .conveyor-interface-section.section-full.conveyor-map {
            flex-direction: column;
            position: relative;
            overflow: hidden;
        }

        .conveyor-map-container canvas {
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
        }

        .conveyor-map .section-header {
            position: absolute;
            z-index: 10;
            pointer-events: none;
            /* left: 0; */
            /* top: 0; */
        }

        .conveyor-map--overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 13em;
            background: linear-gradient(180deg, white 22%, transparent);
            pointer-events: none;
        }


        .filter-dropdown-container {
            display: flex;
            flex-direction: column;
            gap: 2em;
        }

        .filter-dropdown-section-title {
            font-weight: 500;
            font-size: 1.1em;
        }

        .filter-dropdown-container button.button.icon-button-close {
            display: flex;
            justify-content: center;
            align-items: center;
            height: fit-content;
        }

        .filter-dropdown-container-section {
            display: flex;
            flex-direction: column;
            gap: 0.5em;
        }

        .filter-dropdown-section-current {
            color: #888;
        }

        .filter-dropdown-section-current-filter {
            background: #f9f9f9;
            display: flex;
            color: #1f1f1f;
            padding: 0.5em 1.0em;
            gap: 2em;
            border-radius: 1em;
            /* border-radius: 1em; */
            border: 1px solid #eee;
            align-items: center;
            margin-bottom: 0.5em;
        }

        .filter-dropdown-section-current {
            max-height: 11em;
            overflow-y: auto;
        }

        .filter-dropdown-section-current button.button.icon-button-close {
            background: #ffbcbc;
            color: #c94848;
        }

        .filter-dropdown-section-current-filter-text {}

        q {
            /* padding: 0.6em 1em; */
            /* background: #f5f5f5; */
            border-radius: 0.85em;
            white-space: nowrap;
            color: #666;
            border: none;
            box-sizing: border-box;
            font-family: inherit;
            font-size: inherit;
            outline: none;
        }

        select.dropdown-selector {
            all: unset;
            /* border: none; */
            /* outline: none; */
            cursor: pointer;
            user-select: none;
            font-family: inherit;
            font-size: inherit;
            display: inline-block;
            padding: 0.6em 2em 0.6em 1em;
            background: #f5f5f5 url(/static/icons/chevron-down-account.svg) no-repeat right 0.86em center;
            border-radius: 0.85em;
            background-size: 0.6em;
            color: #666;
            /* width: 100%; */
            box-sizing: border-box;
        }

        .filter-dropdown-section-add input[type="text"] {
            all: unset;
            /* border: none; */
            /* outline: none; */
            /* cursor: pointer; */
            user-select: none;
            font-family: inherit;
            width: 100%;
            font-size: inherit;
            display: inline-block;
            padding: 0.6em 1em 0.6em 1em;
            box-sizing: border-box;
            background: #f5f5f5;
            border-radius: 0.85em;
            background-size: 0.6em;
            color: #666;
        }

        .filter-dropdown-section-add {
            display: flex;
            flex-direction: column;
            gap: 0.5em;
        }

        button.button {}

        .filter-dropdown-section-add button.button {
            margin-top: 1em;
            display: flex;
            justify-content: center;
            background: #ff9e74;
            color: #fff;
        }

        /* SuperAdmin Panel Styles */
        .superadmin-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: rgba(0, 0, 0, 0.5);
            z-index: 200;
        }

        .superadmin-panel {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 90%;
            max-width: 70em;
            height: 80vh;
            background: #fff;
            border-radius: 2em;
            box-shadow: 0 0.8em 4em 0 rgba(0, 0, 0, 0.3);
            z-index: 201;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        .superadmin-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 2em 2.5em;
            border-bottom: 1px solid #eee;
        }

        .superadmin-title {
            font-size: 1.8em;
            font-weight: 500;
            color: #2f2f2f;
        }

        .superadmin-header .close-btn {
            font-size: 2.5em;
            line-height: 0.6em;
            color: #888;
            cursor: pointer;
            padding: 0.2em 0.3em;
            border-radius: 0.3em;
            transition: background 0.2s;
        }

        .superadmin-header .close-btn:hover {
            background: #f5f5f5;
            color: #444;
        }

        /* Tenant Portal - light theme to match main UI */
        .tenant-portal {
            position: fixed;
            inset: 0;
            display: none;
            flex-direction: column;
            background: #f5f7fb;
            color: #1f2a44;
            z-index: 900;
            padding: 20px 32px;
            overflow: hidden;
        }

        .tenant-portal-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 16px;
        }

        .tenant-portal-title {
            font-size: 20px;
            font-weight: 700;
        }

        .tenant-portal-subtitle {
            color: #62708a;
            font-size: 12px;
        }

        .tenant-portal-actions {
            display: flex;
            gap: 8px;
        }

        .tenant-portal-tabs,
        .asset-tabs {
            display: flex;
            gap: 8px;
            margin-bottom: 12px;
        }

        .tenant-portal-tabs .tab-btn,
        .asset-tabs .tab-btn {
            padding: 8px 14px;
            background: #e8ecf5;
            color: #1f2a44;
            border: 1px solid #d6dce9;
            border-radius: 8px;
            cursor: pointer;
        }

        .tenant-portal-tabs .tab-btn.active,
        .asset-tabs .tab-btn.active {
            background: #2f6bff;
            border-color: #2f6bff;
            color: #fff;
            box-shadow: 0 6px 16px rgba(47, 107, 255, 0.2);
        }

        .tenant-portal-content {
            flex: 1;
            overflow: auto;
            background: #fff;
            border: 1px solid #e2e7f0;
            border-radius: 12px;
            padding: 16px;
        }

        .portal-pane {
            display: none;
        }

        .portal-pane.active {
            display: block;
        }

        .portal-empty,
        .portal-error {
            padding: 16px;
            border: 1px dashed #d6dce9;
            color: #62708a;
            border-radius: 10px;
            background: #f9fbff;
        }

        .asset-row,
        .template-row,
        .user-row,
        .conveyor-row {
            display: grid;
            grid-template-columns: 2fr 2fr 1fr;
            align-items: center;
            gap: 8px;
            padding: 12px 14px;
            border: 1px solid #e2e7f0;
            border-radius: 10px;
            background: #fff;
            margin-bottom: 10px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
        }

        .asset-title,
        .template-title,
        .conveyor-title {
            font-weight: 700;
        }

        .asset-meta,
        .template-meta,
        .conveyor-meta,
        .user-role {
            color: #62708a;
            font-size: 13px;
        }

        .user-actions button {
            margin-left: 6px;
        }

        /* Access modal sits above tenant portal */
        .modal-overlay.access-modal {
            z-index: 5000;
        }

        .asset-filters {
            display: grid;
            grid-template-columns: 2fr 1fr 1fr;
            gap: 10px;
            margin-bottom: 12px;
            align-items: center;
        }

        .asset-move-select {
            min-width: 200px;
        }

        .asset-pager {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px 0;
            color: #62708a;
        }

        .pager-actions button {
            margin-left: 6px;
        }

        .asset-select-all {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 8px;
            color: #62708a;
        }

        .asset-bulk-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: #f1f5ff;
            border: 1px solid #d6dce9;
            border-radius: 8px;
            padding: 8px 12px;
            margin-bottom: 8px;
        }

        .asset-selection-summary {
            font-weight: 600;
            color: #2f2f2f;
        }

        .asset-bulk-actions button {
            margin-left: 8px;
        }

        /* Structure modal */
        .modal-overlay.structure-modal {
            z-index: 5000;
        }

        .modal-overlay.structure-modal .modal-content {
            max-width: 75em;
            width: 90%;
        }

        .modal-content.modal-content-large {
            max-width: 75em;
            max-height: 88vh;
            display: flex;
            flex-direction: column;
        }

        .modal-content-large .modal-body {
            flex: 1;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            padding: 0;
        }

        .structure-toolbar {
            display: flex;
            gap: 0.6em;
            align-items: center;
            padding: 1.2em 1.8em;
            border-bottom: 1px solid #e8e8e8;
            flex-wrap: wrap;
            background: #fafafa;
        }

        .structure-toolbar .button {
            white-space: nowrap;
        }

        .structure-pagination {
            display: flex;
            gap: 0.5em;
            align-items: center;
            margin-left: auto;
            background: #fff;
            padding: 0.4em 0.8em;
            border-radius: 0.75em;
            border: 1px solid #e2e2e2;
        }

        .structure-page-info {
            font-size: 0.9em;
            color: #666;
            padding: 0 0.5em;
            min-width: 5em;
            text-align: center;
        }

        .structure-toolbar .primary-btn.unsaved {
            background: #ff6b3e;
            animation: pulse 2s infinite;
        }

        @keyframes pulse {

            0%,
            100% {
                opacity: 1;
            }

            50% {
                opacity: 0.85;
            }
        }

        .structure-frames {
            flex: 1;
            overflow-y: auto;
            padding: 1.5em 1.8em;
            background: #f9f9f9;
        }

        .structure-frames .frame {
            border: 1px solid #d8dce5;
            border-radius: 1.2em;
            padding: 1.2em;
            margin-bottom: 1.2em;
            background: #fff;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
        }

        .frame-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1em;
            padding-bottom: 0.8em;
            border-bottom: 1px solid #f0f0f0;
        }

        .frame-title {
            font-size: 1.15em;
            font-weight: 600;
            color: #2f2f2f;
        }

        .frame-fields {
            display: grid;
            grid-template-columns: auto 1fr auto 1fr;
            gap: 0.8em;
            margin-bottom: 1.2em;
            align-items: center;
        }

        .frame-fields label {
            color: #666;
            font-size: 0.9em;
            font-weight: 500;
        }

        .frame-fields .form-input {
            padding: 0.6em 0.9em;
        }

        .rollers {
            display: flex;
            flex-direction: column;
            gap: 1em;
        }

        .roller {
            border: 1px solid #e8eef5;
            border-radius: 0.9em;
            padding: 1em;
            background: #f8fafC;
            transition: all 0.2s;
        }

        .roller:hover {
            border-color: #d0d8e5;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
        }

        .roller-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 0.9em;
        }

        .roller-header h4 {
            margin: 0;
            font-size: 1em;
            font-weight: 600;
            color: #4a5568;
        }

        .roller-fields {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(12em, 1fr));
            gap: 0.8em;
        }

        .roller-field {
            display: flex;
            flex-direction: column;
            gap: 0.4em;
        }

        .roller-field label {
            color: #666;
            font-size: 0.85em;
            font-weight: 500;
        }

        .roller-field .form-input {
            padding: 0.55em 0.75em;
            font-size: 0.95em;
            background: #fff;
            border: 1px solid #e2e7f0;
        }
        .roller-field .form-select {
            padding: 0.55em 2em 0.55em 0.75em;
            font-size: 0.95em;
            background: #fff url(/static/icons/chevron-down-account.svg) no-repeat right 0.7em center;
            background-size: 0.5em;
            border: 1px solid #e2e7f0;
        }

        .roller-field .form-input:focus {
            border-color: #ff9e74;
            background: #fff;
        }
        .roller-field .form-select:focus {
            border-color: #ff9e74;
            background: #fff url(/static/icons/chevron-down-account.svg) no-repeat right 0.8em center;
            background-size: 0.55em;
        }

        .select-container {
            display: flex;
        }

        .select-container select {
            width: 100%;
        }

        .rollers>.button {
            align-self: flex-start;
            margin-top: 0.5em;
        }

        /* Template chooser modal */
        .modal-overlay.template-modal {
            z-index: 5001;
        }

        .modal-content-medium {
            max-width: 45em;
        }

        .template-list {
            display: flex;
            flex-direction: column;
            gap: 0.8em;
            max-height: 28em;
            overflow-y: auto;
        }

        .template-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1em;
            padding: 1em 1.2em;
            background: #f9f9f9;
            border-radius: 0.9em;
            border: 1px solid #e8e8e8;
            transition: all 0.2s;
        }

        .template-row:hover {
            background: #f2f2f2;
            border-color: #d8d8d8;
        }

        .template-info {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 0.3em;
        }

        .template-name {
            font-size: 1.05em;
            font-weight: 600;
            color: #2f2f2f;
        }

        .template-desc {
            font-size: 0.9em;
            color: #666;
        }

        .conveyor-pane-host .conveyor-row {
            display: grid;
            grid-template-columns: 2fr 2fr 1fr;
            align-items: center;
            gap: 8px;
            padding: 12px 14px;
            border: 1px solid #e2e7f0;
            border-radius: 10px;
            background: #fff;
            margin-bottom: 10px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
        }

        .conveyor-pane-host .conveyor-actions button {
            margin-left: 6px;
        }

        .superadmin-tabs {
            display: flex;
            gap: 0.5em;
            padding: 0 2.5em;
            border-bottom: 1px solid #eee;
        }

        .tab-btn {
            all: unset;
            padding: 1em 1.5em;
            cursor: pointer;
            color: #888;
            font-weight: 500;
            border-bottom: 2px solid transparent;
            transition: all 0.2s;
        }

        .tab-btn:hover {
            color: #444;
            background: #f9f9f9;
        }

        .tab-btn.active {
            color: #f4763e;
            border-bottom-color: #f4763e;
        }

        .superadmin-content {
            flex: auto;
            overflow: hidden;
            position: relative;
        }

        .tab-content {
            display: none;
            flex-direction: column;
            height: 100%;
            padding: 2em 2.5em;
            overflow-y: auto;
            box-sizing: border-box;
        }

        .tab-content.active {
            display: flex;
        }

        .tenants-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 1.5em;
        }

        .primary-btn {
            background: #ff9e74;
            color: #fff;
            padding: 0.75em 1.5em;
            border-radius: 0.9em;
            font-weight: 500;
            transition: background 0.2s;
        }

        .primary-btn:hover {
            background: #f4763e;
        }

        .secondary-btn {
            background: #f5f5f5;
            color: #666;
            padding: 0.6em 1.2em;
            border-radius: 0.75em;
            font-weight: 450;
            transition: background 0.2s;
        }

        .secondary-btn:hover {
            background: #e8e8e8;
            color: #444;
        }

        .tenants-list {
            display: flex;
            flex-direction: column;
            gap: 1em;
        }

        .tenant-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 1.5em;
            background: #f9f9f9;
            border-radius: 1.2em;
            transition: background 0.2s;
        }

        .tenant-item:hover {
            background: #f2f2f2;
        }

        .tenant-info {
            flex: auto;
            display: flex;
            flex-direction: column;
            gap: 0.5em;
        }

        .tenant-name {
            font-size: 1.2em;
            font-weight: 500;
            color: #2f2f2f;
        }

        .tenant-desc {
            color: #666;
            font-size: 0.95em;
        }

        .tenant-meta {
            color: #888;
            font-size: 0.85em;
            margin-top: 0.3em;
        }

        .tenant-actions {
            display: flex;
            gap: 0.8em;
        }

        .empty-message {
            text-align: center;
            color: #888;
            padding: 3em;
            font-size: 1.1em;
        }

        .error-message {
            text-align: center;
            color: #c94848;
            padding: 3em;
            font-size: 1.1em;
        }

        .placeholder-text {
            text-align: center;
            color: #888;
            padding: 3em;
            font-size: 1.2em;
        }

        /* Modal Styles */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: rgba(0, 0, 0, 0.6);
            z-index: 300;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .modal-content {
            background: #fff;
            border-radius: 1.5em;
            width: 90%;
            max-width: 35em;
            max-height: 90vh;
            box-sizing: border-box;
            display: flex;
            flex-direction: column;
            box-shadow: 0 0.8em 4em 0 rgba(0, 0, 0, 0.3);
        }

        .modal-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 1.8em 2em;
            border-bottom: 1px solid #eee;
            flex-shrink: 0;
        }

        .modal-title {
            font-size: 1.5em;
            font-weight: 500;
            color: #2f2f2f;
        }

        .modal-header .close-btn {
            font-size: 2em;
            line-height: 0.6em;
            color: #888;
            cursor: pointer;
            padding: 0.2em 0.3em;
            border-radius: 0.3em;
            transition: background 0.2s;
        }

        .modal-header .close-btn:hover {
            background: #f5f5f5;
            color: #444;
        }

        .modal-body {
            padding: 2em;
            flex: 1;
            overflow-y: auto;
            min-height: 0;
        }

        .form-group {
            display: flex;
            flex-direction: column;
            gap: 0.6em;
            margin-bottom: 1.5em;
        }

        .form-label {
            font-weight: 500;
            color: #444;
            font-size: 0.95em;
        }

        .form-input {
            all: unset;
            padding: 0.75em 1em;
            background: #f5f5f5;
            border-radius: 0.75em;
            font-family: inherit;
            font-size: inherit;
            color: #2f2f2f;
            border: 1px solid transparent;
            transition: all 0.2s;
        }

        .form-input:focus {
            background: #fff;
            border-color: #ff9e74;
        }

        .form-textarea {
            all: unset;
            padding: 0.75em 1em;
            background: #f5f5f5;
            border-radius: 0.75em;
            font-family: inherit;
            font-size: inherit;
            color: #2f2f2f;
            border: 1px solid transparent;
            min-height: 5em;
            resize: vertical;
            display: block;
            transition: all 0.2s;
        }

        .form-textarea:focus {
            background: #fff;
            border-color: #ff9e74;
        }

        .modal-footer {
            display: flex;
            gap: 1em;
            padding: 1.5em 2em;
            border-top: 1px solid #eee;
            justify-content: flex-end;
            flex-shrink: 0;
        }

        .modal-footer .button {
            padding: 0.75em 1.8em;
            border-radius: 0.9em;
            font-weight: 500;
        }

        button.superadmin-btn {
            background: linear-gradient(135deg, #ff9e74 0%, #f4763e 100%);
            color: #fff;
            font-weight: 500;
            transition: all 0.2s;
        }

        button.superadmin-btn:hover {
            filter: brightness(1.1);
            transform: translateY(-1px);
        }

        /* User Management Styles */
        .form-select {
            all: unset;
            padding: 0.6em 2em 0.6em 1em;
            background: #f5f5f5 url(/static/icons/chevron-down-account.svg) no-repeat right 0.8em center;
            background-size: 0.55em;
            border-radius: 0.75em;
            font-family: inherit;
            font-size: inherit;
            color: #2f2f2f;
            border: 1px solid transparent;
            transition: all 0.2s;
            cursor: pointer;
            -webkit-appearance: none;
            appearance: none;
        }

        .form-select:focus {
            background: #fff url(/static/icons/chevron-down-account.svg) no-repeat right 0.8em center;
            background-size: 0.55em;
            border-color: #ff9e74;
        }

        .users-section {
            margin-top: 2em;
            padding-top: 2em;
            border-top: 1px solid #eee;
        }

        .users-section-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 1em;
        }

        .users-list {
            display: flex;
            flex-direction: column;
            gap: 0.8em;
        }

        .user-item {
            display: flex;
            align-items: center;
            gap: 1em;
            padding: 1em;
            background: #f9f9f9;
            border-radius: 0.9em;
            transition: background 0.2s;
        }

        .user-item:hover {
            background: #f2f2f2;
        }

        .user-email {
            flex: auto;
            color: #2f2f2f;
            font-size: 0.95em;
        }

        .user-role-select {
            width: 10em;
            padding: 0.5em 0.8em;
            font-size: 0.9em;
        }

        .danger-btn {
            background: #f5f5f5;
            color: #c94848;
            padding: 0.5em 1em;
            border-radius: 0.75em;
            font-weight: 450;
            transition: all 0.2s;
        }

        .danger-btn:hover {
            background: #fee;
            color: #a93838;
        }


        .fullscreen-overlay-message {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: #fff;
            display: flex;
            align-items: center;
            flex-direction: column;
            padding: 5em;
            box-sizing: border-box;
            justify-content: center;
            font-size: 1.5em;
            color: #232323;
            z-index: 100;
        }

        .fullscreen-overlay-message .fullscreen-overlay-title {
            font-weight: 500;
            margin-bottom: 0.5em;
        }

        .fullscreen-overlay-message .fullscreen-overlay-text {
            font-size: 1em;
            color: #666;
        }

        .fullscreen-overlay-support-info {
            margin-top: 3em;
            padding: 0em 1.5em;
            background: #eee;
            border-radius: 1em;
        }
