:root{color-scheme:dark!important;--color-text: #e2e8f0;--color-text-muted: #94a3b8;--color-text-faint: #64748b;--color-background: #0f172a;--color-surface: #1e293b;--color-surface-hover: #334155;--color-border: #334155;--color-border-light: #475569;--color-primary: #2563eb;--color-primary-hover: #3b82f6;--color-primary-active: #1d4ed8;--color-primary-light: #60a5fa;--color-primary-faint: rgba(37, 99, 235, .15);--color-secondary: #475569;--color-success: #10b981;--color-danger: #ef4444;--color-warning: #f59e0b;--color-info: #3b82f6;--color-gray-100: #f1f5f9;--color-gray-200: #e2e8f0;--color-gray-300: #cbd5e1;--color-gray-400: #94a3b8;--color-gray-500: #64748b;--color-gray-600: #475569;--color-gray-700: #334155;--color-gray-800: #1e293b;--color-gray-900: #0f172a;--radius-sm: 8px;--radius-md: 12px;--radius-lg: 16px;--radius-xl: 24px;--font-display: "Poppins", ui-sans-serif, system-ui, sans-serif;--sidebar-width: 280px;--sidebar-anim: .28s ease-in-out}@property --sidebar-width{syntax: "<length>"; inherits: true; initial-value: 280px;}html{color-scheme:dark!important;background:transparent}body{color-scheme:dark!important;background:transparent;color:var(--color-text)}input,textarea,select,button{color-scheme:dark!important}input::placeholder,textarea::placeholder{color:var(--color-text-faint)!important;opacity:1!important}::-webkit-scrollbar{width:10px;height:10px}::-webkit-scrollbar-track{background:var(--color-background)}::-webkit-scrollbar-thumb{background:var(--color-border);border-radius:5px;border:2px solid var(--color-background)}::-webkit-scrollbar-thumb:hover{background:var(--color-border-light)}::selection{background-color:var(--color-primary);color:#fff}::-moz-selection{background-color:var(--color-primary);color:#fff}*:focus-visible{outline:2px solid var(--color-primary-light);outline-offset:2px}*:focus:not(:focus-visible){outline:none}@media print{*{color-scheme:light!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}}dialog,[role=dialog],[role=alertdialog]{color-scheme:dark!important}[role=menu],[role=listbox],[role=combobox],[role=tooltip]{color-scheme:dark!important}@media (forced-colors: active){*{forced-color-adjust:auto!important}}*,*:before,*:after{box-sizing:border-box}html,body{margin:0;padding:0;background:transparent;color:var(--color-text, #e2e8f0);font-family:var(--font-display, "Poppins", ui-sans-serif, system-ui, sans-serif);line-height:1.5}html{transition:--sidebar-width var(--sidebar-anim, .28s ease-in-out)}html.sidebar-collapsed{--sidebar-width: 76px}#root{position:relative;min-height:100vh}.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;padding:0;border:none;border-radius:50%;background:transparent;color:var(--color-text, #e2e8f0);cursor:pointer;position:relative;z-index:2;touch-action:manipulation;pointer-events:auto;transition:background-color .15s ease}.icon-btn svg{pointer-events:none}.icon-btn:hover{background-color:var(--color-surface-hover, #334155)}.notification-stack{position:fixed;top:16px;right:16px;z-index:2000;display:flex;flex-direction:column;gap:.75rem;width:min(420px,calc(100vw - 32px));pointer-events:none}.notification{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem;padding:.85rem 1rem;border:1px solid var(--color-border, #334155);border-left-width:4px;border-radius:var(--radius-md, 12px);background:#0f172af5;color:var(--color-text, #e2e8f0);box-shadow:0 12px 28px #00000059;pointer-events:auto}.notification--success{border-left-color:var(--color-success, #10b981)}.notification--error{border-left-color:var(--color-danger, #ef4444)}.notification--info{border-left-color:var(--color-primary-light, #60a5fa)}.notification button{border:0;background:transparent;color:var(--color-text-muted, #94a3b8);cursor:pointer;font:inherit;line-height:1;padding:.1rem}.scada-shell{display:grid;grid-template-columns:var(--sidebar-width, 280px) minmax(0,1fr);grid-template-rows:1fr;width:100%;min-width:0;min-height:100dvh;min-height:100svh;background:transparent;transition:grid-template-columns var(--sidebar-anim, .28s ease-in-out)}.sidebar{position:relative;grid-column:1;grid-row:1;background:var(--color-surface);border-right:2px solid var(--color-border);padding:16px 12px;display:flex;flex-direction:column;gap:14px;min-height:0;min-width:0;overflow:hidden;font-family:var(--font-display, "Poppins", ui-sans-serif, system-ui, sans-serif);transition:padding-bottom var(--sidebar-anim, .28s ease-in-out)}.brand{position:relative;display:flex;align-items:center;gap:16px;min-height:44px;width:100%;padding-bottom:14px;padding-right:40px;border-bottom:1px solid var(--color-border);transition:min-height .28s ease-in-out,padding-right .28s ease-in-out,padding-bottom .28s ease-in-out,gap .28s ease-in-out}.brand-logo{width:32px;height:32px;border-radius:8px;flex-shrink:0;object-fit:contain;background:transparent;overflow:hidden;opacity:1;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;-webkit-user-drag:none;transition:width .28s ease-in-out,height .28s ease-in-out,opacity .2s ease-in-out,margin .28s ease-in-out}.brand-text{min-width:0;flex:1;padding-left:4px;overflow:hidden;white-space:nowrap;opacity:1;transition:opacity .2s ease-in-out}.brand h1{margin:0;font-family:inherit;font-size:1.05rem;font-weight:700;letter-spacing:-.02em;color:var(--color-text);line-height:1.15;white-space:nowrap}.sidebar-toggle{position:absolute;top:0;left:calc(100% - 32px);margin:0;width:32px;height:32px;flex-shrink:0;border:1px solid var(--color-border);background:var(--color-background);color:var(--color-text-muted);border-radius:var(--radius-sm, 8px);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;z-index:5;transform:none;transition:top .28s ease-in-out,left .28s ease-in-out,transform .28s ease-in-out}.sidebar-toggle:hover{color:var(--color-text);border-color:var(--color-primary-light);background:var(--color-surface-hover)}.sidebar-toggle svg{width:16px;height:16px}.sidebar-mid{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;gap:14px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}.sidebar nav{display:flex;flex-direction:column;gap:4px;flex:0 0 auto;min-height:0}.sidebar nav a,.sidebar nav button.nav-link{background:transparent;border:0;color:var(--color-text-muted);text-align:left;padding:9px 10px;border-radius:var(--radius-sm, 8px);cursor:pointer;font:inherit;font-weight:600;font-size:.9rem;display:flex;align-items:center;gap:10px;width:100%}.sidebar nav a:hover,.sidebar nav button.nav-link:hover{background:var(--color-surface-hover);color:var(--color-text)}.sidebar nav a.active,.sidebar nav button.nav-link.active{background:var(--color-primary-faint);color:var(--color-primary-light)}.nav-ico{width:20px;height:20px;flex-shrink:0;display:inline-flex;align-items:center;justify-content:center}.nav-ico svg{width:18px;height:18px;display:block}.nav-label{white-space:nowrap;overflow:hidden;opacity:1;transition:opacity .2s ease-in-out}.scada-topbar{display:none;grid-column:1;grid-row:1;align-items:center;gap:16px;padding:0 16px;min-height:56px;background:var(--color-surface);border-bottom:1px solid var(--color-border);position:relative;z-index:6}.scada-menu-btn{flex-shrink:0}.scada-topbar-title{font-family:var(--font-display, "Poppins", sans-serif);font-weight:600;font-size:1.25rem;color:var(--color-text, #e2e8f0)}.scada-main{grid-column:2;grid-row:1;padding:24px;overflow:auto;min-width:0;min-height:0}.sidebar-account{margin-top:auto;width:100%;display:flex;flex-direction:column;gap:8px;flex-shrink:0}.sidebar .user-slot{position:relative;display:flex;align-items:center;gap:16px;min-height:44px;width:100%;padding-top:14px;padding-right:40px;border-top:1px solid var(--color-border);flex-shrink:0;transition:min-height .28s ease-in-out,padding-right .28s ease-in-out,padding-top .28s ease-in-out,padding-bottom .28s ease-in-out,gap .28s ease-in-out}.user-avatar,.user-avatar-fallback{width:32px;height:32px;border-radius:50%;flex-shrink:0;object-fit:cover;background:#0f172a}.user-avatar-fallback{display:inline-flex;align-items:center;justify-content:center;font-size:.72rem;font-weight:700;color:#cbd5e1;background:#334155}.user-text{min-width:0;flex:1;display:flex;flex-direction:column;gap:2px;justify-content:center;overflow:hidden;opacity:1;transition:opacity .2s ease-in-out}.user-name{font-size:.875rem;font-weight:600;min-width:0;min-height:1.05em}.sidebar .user-name{text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-role{font-size:.65rem;font-weight:700;text-transform:uppercase;color:#60a5fa;background:#2563eb33;padding:.15rem .4rem;border-radius:4px;width:fit-content;flex-shrink:0}.user-role:empty{display:none}.user-role[data-role=superuser]{color:#f87171;background:#ef444426}.user-role[data-role=admin]{color:#60a5fa;background:#2563eb33}.user-role[data-role=user]{color:#34d399;background:#10b98133}.user-burger{margin-left:auto;flex-shrink:0;width:32px;height:32px;padding:0;border:0;background:transparent;color:#6b7280;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;border-radius:6px;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;font:inherit}.sidebar .user-burger{position:absolute;top:14px;left:calc(100% - 32px);margin:0;z-index:5;transition:top .28s ease-in-out,left .28s ease-in-out,transform .28s ease-in-out}.user-burger svg{width:18px;height:18px;display:block}.user-burger:hover{color:#94a3b8;background:#94a3b814}.user-dropdown{position:absolute;top:calc(100% + .5rem);right:0;min-width:220px;background:#1e293b;border:1px solid #334155;border-radius:8px;box-shadow:0 4px 12px #0006;overflow:hidden;z-index:1000;display:flex;flex-direction:column;padding:4px 0}.user-dropdown[hidden]{display:none}.user-dropdown a,.user-dropdown .nav-link{display:flex;align-items:center;gap:10px;width:100%;text-align:left;padding:.75rem 1rem;border:0;border-radius:0;background:transparent;color:#e2e8f0;font:inherit;font-size:.875rem;font-weight:500;cursor:pointer;text-decoration:none;box-shadow:none}.user-dropdown a:hover,.user-dropdown .nav-link:hover{background:#334155;transform:none}.user-dropdown .logout-link{color:#f87171}.user-dropdown .logout-link:hover{background:#ef44441f;color:#fca5a5}.user-dropdown .logout-link .nav-ico{color:#f87171}.sidebar .user-dropdown{top:auto;bottom:calc(100% + .5rem);right:0;left:0;min-width:0}html.sidebar-collapsed .sidebar .user-dropdown{left:calc(100% + 8px);right:auto;bottom:0;min-width:220px}html.sidebar-collapsed .brand{align-items:center;justify-content:center;gap:0;min-height:44px;padding-right:0;padding-bottom:14px}html.sidebar-collapsed .brand-logo{width:0;height:0;opacity:0;margin:0;pointer-events:none}html.sidebar-collapsed .sidebar-toggle{top:0;left:50%;transform:translate(-50%) rotate(180deg)}html.sidebar-collapsed .brand-text,html.sidebar-collapsed .nav-label,html.sidebar-collapsed .sidebar .user-text{opacity:0;pointer-events:none;flex:0 0 0;width:0;min-width:0;max-width:0;padding:0;margin:0;overflow:hidden}html.sidebar-collapsed .sidebar nav a,html.sidebar-collapsed .sidebar nav button.nav-link{justify-content:center;gap:0}html.sidebar-collapsed .sidebar .user-slot{align-items:flex-start;justify-content:center;gap:0;min-height:84px;padding-top:8px;padding-bottom:0;padding-right:0}html.sidebar-collapsed .sidebar .user-burger{top:52px;left:50%;transform:translate(-50%)}html.sidebar-collapsed .sidebar-account{align-items:stretch}.scada-drawer-mask{display:none}.scada-shell--mobile{grid-template-columns:1fr;grid-template-rows:56px 1fr}.scada-shell--mobile .scada-topbar{display:flex;grid-column:1;grid-row:1}.scada-shell--mobile .scada-main{grid-column:1;grid-row:2}.scada-shell--mobile .sidebar{display:none}.scada-shell--mobile.scada-shell--drawer .sidebar{display:flex;position:fixed;top:0;left:0;bottom:0;width:var(--sidebar-width, 280px);z-index:50;box-shadow:8px 0 32px #00000059}.scada-shell--mobile.scada-shell--drawer .scada-drawer-mask{display:block;position:fixed;top:0;right:0;bottom:0;left:0;z-index:40;border:0;background:#0206178c;cursor:pointer}@media (prefers-reduced-motion: reduce){html,.scada-shell,.brand,.sidebar-toggle,.sidebar .user-slot,.sidebar .user-burger,.brand-logo,.brand-text,.nav-label,.user-text{transition:none!important}}.btn{display:inline-flex;align-items:center;justify-content:center;padding:.5rem 1rem;border:none;border-radius:8px;font-size:1rem;font-weight:500;font-family:inherit;cursor:pointer;transition:all .3s ease;text-shadow:0 1px 2px rgba(0,0,0,.3);-webkit-user-select:none;user-select:none;outline:none}.btn--primary{background-color:var(--color-primary, #2563eb);color:#fff;box-shadow:0 4px 6px #2563eb66,inset 0 1px #ffffff1a}.btn--primary:hover{transform:translateY(-1px);box-shadow:0 6px 10px #2563eb80,inset 0 1px #ffffff1a}.btn--primary:active{transform:translateY(1px);box-shadow:0 2px 4px #2563eb66,inset 0 1px #ffffff1a}.btn--secondary{background-color:var(--color-secondary, #475569);color:var(--color-text, #e2e8f0);box-shadow:0 2px 4px #0003}.btn--secondary:hover{background-color:var(--color-surface-hover, #334155)}.btn--ghost{background:transparent;color:var(--color-primary-light, #60a5fa);padding:.25rem .5rem;font-size:.875rem;text-shadow:none;box-shadow:none}.btn--ghost:hover{background-color:var(--color-primary-faint, rgba(37, 99, 235, .15))}.btn--small{padding:.25rem .5rem;font-size:.875rem}.btn--danger-text{color:var(--color-danger, #ef4444)}.btn--danger-text:hover{background-color:#ef444426}.table-wrap{overflow-x:auto;border:1px solid var(--color-border, #334155);border-radius:var(--radius-md, 12px);background-color:var(--color-surface, #1e293b)}.data-table{width:100%;min-width:700px;border-collapse:collapse;font-size:.875rem}.data-table th{background-color:var(--color-surface, #1e293b);color:var(--color-text, #e2e8f0);font-family:var(--font-display, "Poppins", sans-serif);font-weight:600;text-align:left;padding:12px 16px;border-bottom:2px solid var(--color-border, #334155);white-space:nowrap}.data-table td{padding:10px 16px;border-bottom:1px solid var(--color-border, #334155);color:var(--color-text, #e2e8f0)}.data-table tbody tr:nth-child(odd){background-color:#1e293b80}.data-table tbody tr:nth-child(2n){background-color:var(--color-background, #0f172a)}.data-table tbody tr:hover{background-color:var(--color-surface-hover, #334155)}.data-table tbody tr:last-child td{border-bottom:none}.data-table th .sort-indicator{font-size:.7rem;margin-left:.25rem;opacity:.6}.table-pagination{display:flex;align-items:center;justify-content:space-between;padding:.75rem 1rem;border-top:1px solid var(--color-border, #334155);background-color:var(--color-surface, #1e293b);position:sticky;bottom:0;z-index:5;border-radius:0 0 var(--radius-md, 12px) var(--radius-md, 12px);gap:1rem;flex-wrap:wrap}.table-pagination-info{font-size:.8rem;color:var(--color-text-muted, #94a3b8);white-space:nowrap}.table-pagination-pages{display:flex;align-items:center;gap:2px}.table-page-btn{display:inline-flex;align-items:center;justify-content:center;min-width:32px;height:32px;padding:0 .5rem;border:1px solid transparent;border-radius:6px;background:transparent;color:var(--color-text-muted, #94a3b8);font-size:.8rem;font-weight:500;font-family:inherit;cursor:pointer;transition:all .15s ease}.table-page-btn:hover:not(:disabled){background-color:var(--color-primary-faint, rgba(37, 99, 235, .15));color:var(--color-primary-light, #60a5fa)}.table-page-btn:disabled{opacity:.3;cursor:default}.table-page-btn--active{background-color:var(--color-primary, #2563eb);color:#fff;border-color:var(--color-primary, #2563eb)}.table-page-btn--active:hover{background-color:#1d4ed8;color:#fff}.table-pagination-size{display:flex;align-items:center;gap:4px}.table-pagination-size-label{font-size:.8rem;color:var(--color-text-muted, #94a3b8);margin-right:4px}.table-page-size-btn{display:inline-flex;align-items:center;justify-content:center;min-width:28px;height:26px;padding:0 .4rem;border:1px solid var(--color-border, #334155);border-radius:6px;background:transparent;color:var(--color-text-muted, #94a3b8);font-size:.75rem;font-weight:500;font-family:inherit;cursor:pointer;transition:all .15s ease}.table-page-size-btn:hover{background-color:var(--color-primary-faint, rgba(37, 99, 235, .15));border-color:var(--color-primary, #2563eb);color:var(--color-primary-light, #60a5fa)}.table-page-size-btn--active{background-color:var(--color-primary, #2563eb);border-color:var(--color-primary, #2563eb);color:#fff}.table-page-size-btn--active:hover{background-color:#1d4ed8;color:#fff}.spinner{width:40px;height:40px;border:3px solid var(--color-border, #334155);border-top-color:var(--color-primary, #2563eb);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;display:flex;align-items:center;justify-content:center;background-color:#0009;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.modal-box{background-color:var(--color-surface, #1e293b);border:1px solid var(--color-border, #334155);border-radius:var(--radius-lg, 16px);box-shadow:0 16px 48px #0006;padding:2rem;max-height:90vh;overflow:auto;min-width:500px}.field-label{display:block;font-size:.875rem;font-weight:500;color:var(--color-text-muted, #94a3b8);margin-bottom:.375rem}.field-input,.field-select{width:100%;padding:.5rem .75rem;background-color:var(--color-background, #0f172a);color:var(--color-text, #e2e8f0);border:1px solid var(--color-border, #334155);border-radius:var(--radius-sm, 8px);font-size:.938rem;font-family:inherit;outline:none;transition:border-color .2s ease}.field-input:focus,.field-select:focus{border-color:var(--color-primary-light, #60a5fa)}.field-input:hover,.field-select:hover{border-color:var(--color-primary-light, #60a5fa)}.field-select option{background-color:var(--color-surface, #1e293b)}.checkbox-wrap{display:inline-flex;align-items:center;cursor:pointer}.checkbox-wrap input[type=checkbox]{width:18px;height:18px;accent-color:var(--color-primary, #2563eb);cursor:pointer}.picker-input{padding:.5rem .75rem;background-color:var(--color-background, #0f172a);color:var(--color-text, #e2e8f0);border:1px solid var(--color-border, #334155);border-radius:var(--radius-sm, 8px);font-size:.875rem;font-family:inherit;outline:none;transition:border-color .2s ease;color-scheme:dark}.picker-input:focus{border-color:var(--color-primary-light, #60a5fa)}.picker-input:hover{border-color:var(--color-primary-light, #60a5fa)}.dashboard-loading{display:flex;justify-content:center;align-items:center;min-height:60vh}.dashboard-gauges{display:grid;grid-template-columns:repeat(auto-fit,minmax(350px,1fr));gap:1.5rem;margin-bottom:2.5rem}.dashboard-gauge-card{background-color:var(--color-surface, #1e293b);border:1px solid var(--color-border, #334155);border-radius:var(--radius-lg, 16px);padding:1.5rem;transition:box-shadow .2s ease}.dashboard-gauge-card:hover{box-shadow:0 4px 16px #00000040}.dashboard-chart-section{margin-bottom:2rem}.dashboard-section-title{font-family:var(--font-display);font-size:1.5rem;font-weight:700;color:var(--color-text, #e2e8f0);margin:0 0 1rem}.dashboard-chart-card{background-color:var(--color-surface, #1e293b);border:1px solid var(--color-border, #334155);border-radius:var(--radius-lg, 16px);padding:1.5rem}.dashboard-device-panel{margin-bottom:2rem;width:100%}.dashboard-device-toolbar,.dashboard-canvas-header,.dashboard-inline-control{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}.dashboard-device-status{color:var(--color-text-muted, #94a3b8);font-size:.9rem}.dashboard-device-status-row{display:inline-flex;align-items:center;gap:.5rem;flex-wrap:wrap}.dashboard-designer-shell{display:grid;grid-template-columns:1fr;gap:1rem;margin-top:1rem}.dashboard-expand-card{margin-top:1rem;border:1px solid var(--color-border, #334155);border-radius:var(--radius-lg, 16px);background-color:var(--color-surface, #1e293b);overflow:hidden;width:100%}.dashboard-expand-header{display:flex;align-items:center;gap:1rem;padding:.75rem 1rem;border-bottom:1px solid var(--color-border, #334155)}.dashboard-expand-title{display:inline-flex;align-items:center;border:0;background:transparent;color:var(--color-text, #e2e8f0);font:inherit;font-weight:700;cursor:pointer;padding:0}.dashboard-expand-actions{margin-left:auto;display:inline-flex;align-items:center;gap:.5rem}.dashboard-expand-arrow{margin-left:auto;border:0;background:transparent;color:var(--color-primary, #2563eb);cursor:pointer;display:inline-block;font-size:1.25rem;font-weight:700;line-height:1;padding:.25rem;transition:transform .2s ease,color .15s ease}.dashboard-expand-actions+.dashboard-expand-arrow{margin-left:0}.dashboard-expand-arrow.is-open{transform:rotate(180deg)}.dashboard-expand-arrow:hover{color:var(--color-primary-light, #60a5fa)}.dashboard-expand-card>.dashboard-designer-shell,.dashboard-expand-card>.dashboard-device-sections{padding:1rem}.dashboard-designer-shell.is-designing{grid-template-columns:minmax(260px,320px) 1fr}.dashboard-toolbox,.dashboard-widget-editor{background-color:var(--color-surface, #1e293b);border:1px solid var(--color-border, #334155);border-radius:var(--radius-lg, 16px);padding:1rem}.dashboard-canvas-card{min-width:0}.dashboard-toolbox{max-height:78vh;overflow:auto}.dashboard-toolbox-section{display:grid;gap:.5rem;margin-bottom:1rem}.dashboard-widget-palette{grid-template-columns:1fr}.dashboard-palette-item{display:grid;gap:.15rem;width:100%;padding:.65rem .75rem;border:1px solid var(--color-border, #334155);border-radius:var(--radius-sm, 8px);background:#0f172ab3;color:var(--color-text, #e2e8f0);cursor:pointer;font:inherit;text-align:left}.dashboard-palette-item:hover{border-color:var(--color-primary, #2563eb);background:#2563eb29}.dashboard-palette-item span{color:var(--color-text-muted, #94a3b8);font-size:.78rem}.dashboard-toolbox-section h3,.dashboard-widget-editor h3{margin:0;color:var(--color-text, #e2e8f0)}.dashboard-toolbox-section p{margin:0;color:var(--color-text-muted, #94a3b8);font-size:.85rem}.dashboard-grid-canvas{position:relative;display:grid;grid-template-columns:repeat(50,1fr);grid-template-rows:repeat(var(--dashboard-visible-rows, 50),1fr);gap:2px;width:100%;aspect-ratio:50 / var(--dashboard-visible-rows, 50);padding:.75rem;border:1px solid transparent;border-radius:var(--radius-md, 12px)}.dashboard-grid-canvas.is-editing{border-color:var(--color-border, #334155)}.dashboard-grid-canvas.is-editing{background-image:linear-gradient(rgba(148,163,184,.12) 1px,transparent 1px),linear-gradient(90deg,rgba(148,163,184,.12) 1px,transparent 1px);background-size:2% calc(100% / var(--dashboard-visible-rows, 50))}.dashboard-grid-canvas.is-empty{display:block;aspect-ratio:auto;min-height:120px}.dashboard-empty-canvas{grid-column:1 / span 50;grid-row:1 / span 50;display:grid;place-items:center;color:var(--color-text-muted, #94a3b8);border:1px dashed var(--color-border, #334155);border-radius:var(--radius-md, 12px);min-height:120px}.dashboard-widget{position:relative;display:grid;min-width:0;overflow:hidden;padding:.75rem;background:#0f172ae0;border:1px solid var(--color-border, #334155);border-radius:var(--radius-md, 12px);color:var(--color-text, #e2e8f0)}.dashboard-widget-content{display:grid;grid-template-rows:min-content auto min-content;gap:.18rem;height:100%;min-height:0}.dashboard-widget-title{display:grid;justify-items:center;gap:.15rem;text-align:center;min-width:0;min-height:1.35rem}.dashboard-widget-title strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}.dashboard-widget-main{display:grid;place-items:center;align-content:center;gap:.22rem;min-height:0;text-align:center}.dashboard-widget-updated{justify-self:center;color:var(--color-text-muted, #94a3b8);font-size:.72rem;text-align:center}.is-designing .dashboard-widget{cursor:move;-webkit-user-select:none;user-select:none}.dashboard-widget.is-selected{outline:2px solid var(--color-primary, #38bdf8)}.dashboard-widget.is-hidden-widget{opacity:.45;outline-style:dashed}.dashboard-resize-handle{position:absolute;z-index:4;background:var(--color-primary, #38bdf8);border:1px solid rgba(15,23,42,.85);border-radius:999px}.dashboard-resize-handle--n,.dashboard-resize-handle--s{left:50%;width:18px;height:8px;transform:translate(-50%);cursor:ns-resize}.dashboard-resize-handle--e,.dashboard-resize-handle--w{top:50%;width:8px;height:18px;transform:translateY(-50%);cursor:ew-resize}.dashboard-resize-handle--n{top:-5px}.dashboard-resize-handle--s{bottom:-5px}.dashboard-resize-handle--e{right:-5px}.dashboard-resize-handle--w{left:-5px}.dashboard-resize-handle--ne,.dashboard-resize-handle--se,.dashboard-resize-handle--sw,.dashboard-resize-handle--nw{width:12px;height:12px}.dashboard-resize-handle--ne{top:-6px;right:-6px;cursor:nesw-resize}.dashboard-resize-handle--se{right:-6px;bottom:-6px;cursor:nwse-resize}.dashboard-resize-handle--sw{bottom:-6px;left:-6px;cursor:nesw-resize}.dashboard-resize-handle--nw{top:-6px;left:-6px;cursor:nwse-resize}.dashboard-widget-badge{position:absolute;top:.35rem;right:2rem;padding:.1rem .35rem;border-radius:999px;background:#38bdf829;color:var(--color-primary, #38bdf8);font-size:.7rem}.dashboard-widget-delete{position:absolute;top:.3rem;right:.3rem;z-index:5;display:inline-grid;place-items:center;width:22px;height:22px;border:1px solid rgba(239,68,68,.7);border-radius:999px;background:#7f1d1de6;color:#fecaca;cursor:pointer;font:inherit;line-height:1}.dashboard-widget-delete:hover{background:#ef4444e6;color:#fff}.dashboard-widget-value{font-size:clamp(1.6rem,2.2vw,2.25rem);font-weight:700;text-align:center}.dashboard-current-value{color:var(--color-text-muted, #94a3b8)}.dashboard-tied-variable{color:var(--color-primary-light, #60a5fa);font-size:.75rem;line-height:1.2}.dashboard-text-widget,.dashboard-panel-title{font-size:1.1rem}.dashboard-widget--panel{background:#1e293b73;border-style:dashed;align-content:start}.dashboard-widget--image{align-items:stretch;justify-items:stretch;padding:.5rem}.dashboard-widget--gmap{padding:.5rem}.dashboard-widget--gmap .dashboard-widget-content{grid-template-rows:min-content minmax(0,1fr) min-content}.dashboard-widget--gmap .dashboard-widget-main{align-items:stretch;justify-items:stretch;align-content:stretch;display:block;height:100%;min-height:0}.dashboard-image-widget{display:block;align-self:stretch;justify-self:stretch;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;object-position:center;min-width:0;min-height:0}.dashboard-map-widget{display:block;width:100%;height:100%;min-height:0;border:0;border-radius:var(--radius-sm, 8px)}.dashboard-switch{width:58px;height:32px;padding:3px;border:0;border-radius:999px;background:#475569;cursor:pointer}.dashboard-switch span{display:block;width:26px;height:26px;border-radius:50%;background:#fff;transition:transform .18s ease}.dashboard-switch.is-on{background:#22c55e}.dashboard-switch.is-on span{transform:translate(26px)}.dashboard-led{display:inline-block;width:34px;height:34px;border-radius:50%;background:#334155;box-shadow:inset 0 0 8px #00000073}.dashboard-led--green.is-on{background:#22c55e;box-shadow:0 0 16px #22c55e}.dashboard-led--red.is-on{background:#ef4444;box-shadow:0 0 16px #ef4444}.dashboard-led--yellow.is-on{background:#f59e0b;box-shadow:0 0 16px #f59e0b}.dashboard-widget-editor{display:grid;gap:.65rem}.dashboard-widget-editor label,.dashboard-grid-fields label{display:grid;gap:.25rem;color:var(--color-text-muted, #94a3b8);font-size:.85rem}.dashboard-widget-editor .dashboard-checkbox-label{display:flex;align-items:center;grid-template-columns:none}.dashboard-gradient-editor{border:1px solid var(--color-border, #334155);border-radius:var(--radius-sm, 8px);padding:.5rem}.dashboard-gradient-editor summary{cursor:pointer;color:var(--color-text, #e2e8f0);font-weight:600}.dashboard-gradient-row{display:grid;grid-template-columns:1fr 52px;gap:.5rem;align-items:center;margin-top:.5rem}.dashboard-grid-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.5rem}.dashboard-debug-toggle{margin:1rem 0}@media (max-width: 1100px){.dashboard-designer-shell.is-designing{grid-template-columns:1fr}}.dashboard-status{display:flex;align-items:center;gap:.5rem;padding:.75rem 1rem;background-color:var(--color-surface, #1e293b);border:1px solid var(--color-border, #334155);border-radius:var(--radius-md, 12px);width:fit-content}.dashboard-status-dot{width:10px;height:10px;border-radius:50%;flex-shrink:0}.dashboard-status-text{font-size:.875rem;color:var(--color-text-muted, #94a3b8)}.explorer{display:flex;flex-direction:column;gap:1.5rem}.explorer-controls{background-color:var(--color-surface, #1e293b);border:1px solid var(--color-border, #334155);border-radius:var(--radius-lg, 16px);padding:1rem 1.25rem}.explorer-presets{display:flex;align-items:center;gap:.5rem;margin-left:.5rem;padding-left:1rem;border-left:1px solid var(--color-border, #334155)}.btn-preset{padding:.25rem .75rem;border:1px solid var(--color-border, #334155);border-radius:var(--radius-sm, 8px);background:transparent;color:var(--color-text-muted, #94a3b8);font-size:.8rem;font-weight:500;font-family:inherit;cursor:pointer;transition:all .15s ease}.btn-preset:hover{background-color:var(--color-primary-faint, rgba(37, 99, 235, .15));border-color:var(--color-primary, #2563eb);color:var(--color-primary-light, #60a5fa)}.btn-preset--active{background-color:var(--color-primary, #2563eb);border-color:var(--color-primary, #2563eb);color:#fff}.btn-preset--active:hover{background-color:#1d4ed8;border-color:#1d4ed8;color:#fff}.explorer-date-row{display:flex;align-items:center;gap:1rem;flex-wrap:wrap}.explorer-date-group{display:flex;align-items:center;gap:.5rem}.explorer-date-label{font-size:.8rem;font-weight:600;color:var(--color-text-muted, #94a3b8);text-transform:uppercase;letter-spacing:.04em;min-width:2rem}.explorer-date-separator{color:var(--color-text-faint, #64748b);font-size:1.25rem;padding:0 .25rem}.explorer-toolbar{display:flex;gap:.75rem;margin-left:auto;align-items:center}.explorer-loading{display:flex;justify-content:center;align-items:center;min-height:40vh}.explorer-chart-card{background-color:var(--color-surface, #1e293b);border:1px solid var(--color-border, #334155);border-radius:var(--radius-lg, 16px);padding:1.5rem;position:relative}.explorer-chart-overlay{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;background-color:#0f172ab3;border-radius:var(--radius-lg, 16px);z-index:10;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.explorer-table-section{margin-top:.5rem}.alerts-page{display:flex;flex-direction:column;gap:2rem}.alerts-toolbar{display:flex;justify-content:flex-end}.alerts-error{display:flex;justify-content:center;align-items:center;min-height:40vh;color:var(--color-danger, #ef4444)}.alerts-section{display:flex;flex-direction:column;gap:1rem}.alerts-section-title{font-family:var(--font-display);font-size:1.25rem;font-weight:700;color:var(--color-text, #e2e8f0);margin:0;padding-bottom:.5rem;border-bottom:1px solid var(--color-border, #334155)}.alerts-section-title--active{color:var(--color-warning, #f59e0b)}.alert-modal-form{min-width:500px}.alert-modal-title{font-family:var(--font-display);font-size:1.5rem;font-weight:700;color:var(--color-text, #e2e8f0);margin:0 0 1.5rem}.alert-modal-fields{display:flex;flex-direction:column;gap:1.25rem}.alert-modal-row{display:flex;gap:1rem;align-items:flex-start}.alert-modal-field{width:100%}.alert-modal-textarea{width:100%;resize:none;font-family:system-ui,sans-serif;font-size:.875rem;line-height:1.5;padding:.75rem;border-radius:var(--radius-sm, 8px);color:var(--color-text, #e2e8f0);background:var(--color-background, #0f172a);border:1px solid var(--color-border, #334155)}.alert-modal-textarea:hover{border-color:var(--color-primary-light, #60a5fa)}.alert-modal-textarea:focus{border-color:var(--color-primary-light, #60a5fa);outline:none}.alert-modal-textarea:disabled{opacity:.5}.alert-modal-actions{display:flex;justify-content:flex-end;gap:.75rem;margin-top:1.5rem}.devices-page{display:flex;flex-direction:column;gap:1.5rem}.devices-card{background:var(--color-surface, #1e293b);border:1px solid var(--color-border, #334155);border-radius:var(--radius-lg, 16px);padding:1.5rem}.devices-title{color:var(--color-text, #e2e8f0);font-family:var(--font-display);font-size:1.25rem;font-weight:700;margin:0}.devices-subtitle,.devices-status{color:var(--color-text-muted, #94a3b8);margin:.35rem 0 0}.devices-form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:1rem;margin-top:1.25rem}.devices-field{color:var(--color-text-muted, #94a3b8);display:flex;flex-direction:column;font-size:.875rem;gap:.4rem}.devices-field input,.devices-field select,.devices-data-table input,.devices-data-table select,.dashboard-device-panel input,.dashboard-device-panel select{background:var(--color-background, #0f172a);border:1px solid var(--color-border, #334155);border-radius:var(--radius-sm, 8px);color:var(--color-text, #e2e8f0);min-height:38px;padding:.55rem .7rem}.devices-location-row{display:grid;grid-template-columns:minmax(260px,1fr) minmax(260px,360px);gap:1rem;margin-top:1rem}.devices-map-preview{align-items:center;background:var(--color-background, #0f172a);border:1px solid var(--color-border, #334155);border-radius:var(--radius-md, 12px);color:var(--color-text-muted, #94a3b8);display:flex;justify-content:center;min-height:180px;overflow:hidden}.devices-upload-row,.devices-table-toolbar,.devices-save-row,.devices-actions{align-items:center;display:flex;gap:.75rem}.devices-upload-row{margin-top:1rem}.devices-upload-panel{display:flex;flex-direction:column;gap:.75rem}.devices-upload-btn{cursor:pointer}.btn--disabled{cursor:not-allowed;opacity:.6;pointer-events:none}.devices-progress{background:var(--color-background, #0f172a);border:1px solid var(--color-border, #334155);border-radius:999px;height:10px;overflow:hidden;position:relative;width:100%}.devices-progress-bar{animation:devices-progress-slide 1.1s ease-in-out infinite;background:linear-gradient(90deg,transparent,var(--color-primary-light, #60a5fa),transparent);height:100%;left:-45%;position:absolute;top:0;width:45%}.devices-progress-meta{color:var(--color-text-muted, #94a3b8);display:flex;font-size:.8rem;justify-content:space-between}@keyframes devices-progress-slide{0%{left:-45%}to{left:100%}}.devices-table-toolbar{justify-content:space-between;margin-bottom:1rem}.devices-data-table input,.devices-data-table select{min-width:90px;width:100%}.devices-bit-grid{display:grid;gap:.25rem;grid-template-columns:repeat(4,minmax(42px,1fr));min-width:190px}.devices-bit-option{align-items:center;color:var(--color-text-muted, #94a3b8);display:flex;font-size:.75rem;gap:.25rem}.devices-bit-option input{min-height:auto;min-width:auto;width:auto}.devices-bit-submenu{background:var(--color-background, #0f172a);border:1px solid var(--color-border, #334155);border-radius:var(--radius-md, 12px);display:grid;gap:.5rem;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));padding:.75rem}.devices-bit-row{align-items:center;color:var(--color-text-muted, #94a3b8);display:grid;gap:.5rem;grid-template-columns:auto 58px 1fr}.devices-bit-row input[type=checkbox]{min-height:auto;min-width:auto;width:auto}.devices-muted{color:var(--color-text-muted, #94a3b8);font-size:.8rem}.devices-save-row{justify-content:flex-end;margin-top:1rem}.devices-list{display:flex;flex-direction:column;gap:.75rem;margin-top:1rem}.devices-list-item{align-items:center;background:var(--color-background, #0f172a);border:1px solid var(--color-border, #334155);border-radius:var(--radius-md, 12px);color:var(--color-text-muted, #94a3b8);display:grid;gap:.75rem;grid-template-columns:1.3fr 1fr 1.5fr .8fr auto;padding:.85rem 1rem}.devices-list-item strong{color:var(--color-text, #e2e8f0)}.devices-list-actions{display:flex;gap:.5rem;justify-content:flex-end}.dashboard-device-panel{background:transparent;border:none;border-radius:var(--radius-lg, 16px);margin-bottom:2rem;padding:0;width:100%}.dashboard-device-toolbar{align-items:stretch;display:flex;flex-direction:column;gap:.5rem;justify-content:flex-start;margin-bottom:1.25rem;width:100%}.dashboard-device-toolbar .devices-field,.dashboard-device-toolbar .devices-field select{width:100%;max-width:none}.dashboard-device-sections{display:grid;gap:1.25rem;grid-template-columns:repeat(auto-fit,minmax(320px,1fr))}.dashboard-device-write-cell{align-items:center;display:flex;gap:.5rem}.dashboard-device-bit-write{align-items:center;color:var(--color-text-muted, #94a3b8);display:inline-flex;gap:.35rem;min-width:80px}.dashboard-device-status{color:var(--color-text-muted, #94a3b8);font-size:.875rem}@media (max-width: 760px){.devices-location-row,.devices-list-item{grid-template-columns:1fr}.devices-table-toolbar,.dashboard-device-toolbar{align-items:stretch;flex-direction:column}}input::placeholder{color:#64748b!important;opacity:1!important}input:-webkit-autofill,input:-webkit-autofill:hover,input:-webkit-autofill:focus{-webkit-box-shadow:0 0 0 30px #0f172a inset!important;-webkit-text-fill-color:#e2e8f0!important;border-color:#475569!important;transition:background-color 5000s ease-in-out 0s}.gauge-container{padding:0}#perioadaAleasa{background-color:var(--color-background, #0f172a)}#grafic{background-color:var(--color-surface, #1e293b)}html.mobile-layout,html.mobile-layout body{margin:0!important;width:100%;max-width:100%;overflow-x:hidden;background:transparent;color:#e2e8f0;-webkit-text-size-adjust:100%;touch-action:manipulation}html.mobile-layout.island-right,html.mobile-layout.island-right body{background:var(--color-surface, #1e293b)}html.mobile-layout{--sidebar-width: 13.5rem;--safe-top: env(safe-area-inset-top, 0px);--safe-right: env(safe-area-inset-right, 0px);--safe-bottom: env(safe-area-inset-bottom, 0px);--safe-left: env(safe-area-inset-left, 0px)}html.mobile-layout.sidebar-collapsed{--sidebar-width: 56px}html.mobile-layout.island-left{--safe-right: 24px}html.mobile-layout.island-right{--safe-left: 20px}html.mobile-layout .scada-shell,html.mobile-layout .scada-shell--mobile,html.mobile-layout .scada-shell--drawer{height:100svh;width:100%;max-width:100%;min-height:0;margin:0;padding-top:var(--safe-top, env(safe-area-inset-top, 0px));padding-right:var(--safe-right, env(safe-area-inset-right, 0px));padding-bottom:var(--safe-bottom, env(safe-area-inset-bottom, 0px));padding-left:var(--safe-left, env(safe-area-inset-left, 0px));grid-template-columns:var(--sidebar-width) minmax(0,1fr);grid-template-rows:1fr;box-sizing:border-box;background:transparent}html.mobile-layout .scada-topbar,html.mobile-layout .scada-drawer-mask{display:none!important}html.mobile-layout .sidebar{display:flex!important;grid-column:1;grid-row:1;position:relative;width:auto;inset:auto;box-shadow:none;overflow-x:hidden!important;overflow-y:hidden!important;padding-left:12px;padding-right:12px}html.mobile-layout .sidebar>.brand,html.mobile-layout .sidebar>.sidebar-account{flex:0 0 auto}html.mobile-layout .sidebar-mid,html.mobile-layout.sidebar-collapsed .sidebar-mid{flex:1 1 auto;min-height:0;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;touch-action:pan-y}html.mobile-layout .sidebar-toggle{display:inline-flex!important;width:32px;height:32px;min-width:32px;min-height:32px}html.mobile-layout .sidebar .user-name{max-width:7rem}html.mobile-layout .sidebar .user-dropdown,html.mobile-layout.sidebar-collapsed .sidebar .user-dropdown{left:0;right:0;bottom:calc(100% + .5rem);min-width:0}html.mobile-layout .scada-main{grid-column:2;grid-row:1;width:85%;max-width:85%;min-width:0;margin-left:auto;margin-right:auto;padding:14px 0 28px;overflow:auto;-webkit-overflow-scrolling:touch;container-type:inline-size;container-name:scada-main}html.mobile-layout .scada-main>*{min-width:0;max-width:100%}html.mobile-layout input[type=text],html.mobile-layout input[type=number],html.mobile-layout input[type=password],html.mobile-layout input[type=email],html.mobile-layout input[type=tel],html.mobile-layout input[type=search],html.mobile-layout input[type=date],html.mobile-layout input[type=time],html.mobile-layout input[type=datetime-local],html.mobile-layout textarea,html.mobile-layout select{max-width:100%;min-width:0;font-size:16px!important}html.mobile-layout button,html.mobile-layout [role=button]{min-height:40px}html.mobile-layout .sidebar-toggle,html.mobile-layout .user-burger,html.mobile-layout .icon-btn{min-height:32px}html.mobile-layout .table-wrap{max-width:100%}html.mobile-layout .modal-box{min-width:0;width:min(36rem,calc(100vw - 1.5rem));max-width:100%;margin:.75rem;padding:1.25rem;box-sizing:border-box}html.mobile-layout .alert-modal-form{min-width:0}html.mobile-layout .alert-modal-row,html.mobile-layout .explorer-date-row,html.mobile-layout .dashboard-device-toolbar,html.mobile-layout .devices-table-toolbar{flex-wrap:wrap}@container scada-main (max-width: 720px){.dashboard-gauges,.dashboard-designer-shell.is-designing,.devices-location-row,.devices-list-item,.dashboard-grid-fields{grid-template-columns:1fr}.dashboard-gauge-card,.dashboard-chart-card,.devices-card,.explorer-controls{padding:1rem}.dashboard-section-title,.devices-title,.alerts-section-title{font-size:1.1rem}.alert-modal-row{flex-direction:column}}html.mobile-layout.m-rotate-lock,html.mobile-layout.m-rotate-lock body,html.mobile-layout.m-rotate-lock #root{overflow:hidden!important;height:100%;max-height:100dvh;overscroll-behavior:none}.m-rotate-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:2000;display:flex;align-items:center;justify-content:center;padding:var(--safe-top, env(safe-area-inset-top, 0px)) 1.5rem 1.5rem;box-sizing:border-box;background:#0f172a}.m-rotate-overlay[hidden]{display:none}.m-rotate-card{text-align:center;max-width:20rem}.m-rotate-card h2{margin:1.25rem 0 .4rem;font-size:1.45rem;font-family:Poppins,system-ui,sans-serif;color:#e2e8f0}.m-rotate-card p{margin:0;color:#94a3b8;font-size:.95rem;line-height:1.45}.m-rotate-phone{position:relative;width:88px;height:88px;margin:0 auto}.m-rotate-phone-body{position:absolute;left:50%;top:50%;width:36px;height:60px;margin:-30px 0 0 -18px;border:3px solid #60a5fa;border-radius:8px;box-shadow:0 0 24px #60a5fa40;animation:m-rotate-phone 1.6s ease-in-out infinite}.m-rotate-phone-body:after{content:"";position:absolute;left:50%;bottom:5px;width:8px;height:3px;margin-left:-4px;border-radius:2px;background:#60a5fa}.m-rotate-arrow{position:absolute;right:4px;top:8px;color:#93c5fd;font-size:1.4rem;animation:m-rotate-arrow 1.6s ease-in-out infinite}@keyframes m-rotate-phone{0%,18%{transform:rotate(0)}45%,to{transform:rotate(90deg)}}@keyframes m-rotate-arrow{0%,18%{opacity:.35;transform:scale(.9)}45%,to{opacity:1;transform:scale(1)}}@media (prefers-reduced-motion: reduce){.m-rotate-phone-body,.m-rotate-arrow{animation:none}}
