- Graph-Integration von feature/cytoscape-graph auf main portiert (anlagen.php + contact_anlagen.php: View-Mode, Toolbar, Container) - Baum-Knoten farblich unterschieden: grün=Gebäude, blau=Equipment, orange=Endgerät (CSS border-left + Icon-Farbe je nach can_have_children/can_have_equipment) - PWA: Kompletter Anlagen-Baum statt flache Liste (API liefert rekursiven Baum, Frontend mit aufklappbaren Knoten) - PWA: Equipment-Container öffnen Editor, Strukturknoten klappen auf/zu - Connection-URLs in contact_anlagen.php: contactid Parameter ergänzt Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1567 lines
28 KiB
CSS
1567 lines
28 KiB
CSS
/**
|
|
* KundenKarte PWA Styles
|
|
* Design-System basierend auf Dolibarr Dark Theme
|
|
* Mobile-First, Touch-optimiert
|
|
*/
|
|
|
|
:root {
|
|
--primary: #0077b3;
|
|
--colorbackbody: #1d1e20;
|
|
--colorbackcard: #1d1e20;
|
|
--colorbacktitle: #3b3c3e;
|
|
--colorbackline: #38393d;
|
|
--colorbackinput: rgb(70, 70, 70);
|
|
--colortext: rgb(220,220,220);
|
|
--colortextmuted: rgb(180,180,180);
|
|
--colortextlink: #4390dc;
|
|
--colorborder: #2b2c2e;
|
|
--butactionbg: rgb(173,140,79);
|
|
--textbutaction: rgb(255,255,255);
|
|
--success: #25a580;
|
|
--danger: #993013;
|
|
--warning: #bc9526;
|
|
|
|
/* Safe areas für notches */
|
|
--safe-top: env(safe-area-inset-top, 0px);
|
|
--safe-bottom: env(safe-area-inset-bottom, 0px);
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
|
|
html, body {
|
|
height: 100%;
|
|
overflow: hidden;
|
|
}
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
|
|
background: var(--colorbackbody);
|
|
color: var(--colortext);
|
|
font-size: 16px;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
/* ============================================
|
|
APP CONTAINER
|
|
============================================ */
|
|
|
|
.app {
|
|
height: 100%;
|
|
height: 100dvh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* ============================================
|
|
SCREENS
|
|
============================================ */
|
|
|
|
.screen {
|
|
display: none;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.screen.active {
|
|
display: flex;
|
|
}
|
|
|
|
/* ============================================
|
|
HEADER
|
|
============================================ */
|
|
|
|
.header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 14px 16px;
|
|
padding-top: calc(14px + var(--safe-top));
|
|
background: var(--primary);
|
|
color: #fff;
|
|
min-height: 56px;
|
|
flex-shrink: 0;
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 100;
|
|
}
|
|
|
|
.header h1 {
|
|
flex: 1;
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.header-spacer {
|
|
width: 44px;
|
|
}
|
|
|
|
.btn-icon {
|
|
width: 44px;
|
|
height: 44px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: rgba(255,255,255,0.15);
|
|
border: none;
|
|
border-radius: 8px;
|
|
color: #fff;
|
|
cursor: pointer;
|
|
transition: background 0.2s;
|
|
position: relative;
|
|
}
|
|
|
|
.btn-icon:active {
|
|
background: rgba(255,255,255,0.3);
|
|
}
|
|
|
|
.btn-icon svg {
|
|
width: 24px;
|
|
height: 24px;
|
|
fill: currentColor;
|
|
}
|
|
|
|
.sync-btn {
|
|
position: relative;
|
|
}
|
|
|
|
.sync-badge {
|
|
position: absolute;
|
|
top: 2px;
|
|
right: 2px;
|
|
background: var(--danger);
|
|
color: #fff;
|
|
font-size: 11px;
|
|
font-weight: bold;
|
|
min-width: 18px;
|
|
height: 18px;
|
|
border-radius: 9px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 0 4px;
|
|
}
|
|
|
|
.sync-badge.hidden {
|
|
display: none;
|
|
}
|
|
|
|
/* ============================================
|
|
LOGIN SCREEN
|
|
============================================ */
|
|
|
|
.login-container {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 24px;
|
|
}
|
|
|
|
.login-logo {
|
|
width: 72px;
|
|
height: 72px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.login-logo svg {
|
|
width: 64px;
|
|
height: 64px;
|
|
fill: var(--primary);
|
|
}
|
|
|
|
.login-title {
|
|
font-size: 24px;
|
|
font-weight: 600;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.login-subtitle {
|
|
font-size: 14px;
|
|
color: var(--colortextmuted);
|
|
margin-bottom: 28px;
|
|
}
|
|
|
|
.login-form {
|
|
width: 100%;
|
|
max-width: 340px;
|
|
background: var(--colorbackline);
|
|
border: 1px solid var(--colorborder);
|
|
border-radius: 12px;
|
|
padding: 28px 24px;
|
|
}
|
|
|
|
/* ============================================
|
|
FORMS
|
|
============================================ */
|
|
|
|
.form-group {
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.form-group label {
|
|
display: block;
|
|
font-size: 14px;
|
|
color: var(--colortextmuted);
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.form-group input,
|
|
.form-group select {
|
|
width: 100%;
|
|
padding: 14px 16px;
|
|
font-size: 16px;
|
|
background: var(--colorbackinput);
|
|
border: 1px solid var(--colorborder);
|
|
border-radius: 8px;
|
|
color: var(--colortext);
|
|
outline: none;
|
|
transition: border-color 0.2s;
|
|
}
|
|
|
|
.form-group input:focus,
|
|
.form-group select:focus {
|
|
border-color: var(--primary);
|
|
}
|
|
|
|
.form-group input::placeholder {
|
|
color: var(--colortextmuted);
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.error-text {
|
|
color: #fff;
|
|
background: var(--danger);
|
|
padding: 10px 14px;
|
|
border-radius: 8px;
|
|
font-size: 13px;
|
|
margin-top: 12px;
|
|
text-align: center;
|
|
min-height: 0;
|
|
}
|
|
|
|
.error-text:empty {
|
|
display: none;
|
|
}
|
|
|
|
/* ============================================
|
|
BUTTONS
|
|
============================================ */
|
|
|
|
.btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
padding: 14px 24px;
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
border: none;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.btn:active {
|
|
transform: scale(0.98);
|
|
}
|
|
|
|
.btn-primary {
|
|
background: var(--butactionbg);
|
|
color: var(--textbutaction);
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
opacity: 0.9;
|
|
}
|
|
|
|
.btn-secondary {
|
|
background: var(--colorbacktitle);
|
|
color: var(--colortext);
|
|
border: 1px solid var(--colorborder);
|
|
}
|
|
|
|
.btn-success {
|
|
background: var(--success);
|
|
color: #fff;
|
|
}
|
|
|
|
.btn-danger {
|
|
background: var(--danger);
|
|
color: #fff;
|
|
}
|
|
|
|
.btn-large {
|
|
width: 100%;
|
|
padding: 16px;
|
|
font-size: 17px;
|
|
font-weight: 600;
|
|
background: var(--butactionbg);
|
|
color: var(--textbutaction);
|
|
border: none;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
/* ============================================
|
|
SEARCH
|
|
============================================ */
|
|
|
|
.search-container {
|
|
padding: 16px;
|
|
flex-shrink: 0;
|
|
background: var(--colorbacktitle);
|
|
border-bottom: 1px solid var(--colorborder);
|
|
}
|
|
|
|
.search-box {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 12px 16px;
|
|
background: var(--colorbackinput);
|
|
border: 1px solid var(--colorborder);
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.search-box svg {
|
|
width: 22px;
|
|
height: 22px;
|
|
fill: var(--colortextmuted);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.search-box input {
|
|
flex: 1;
|
|
background: transparent;
|
|
border: none;
|
|
color: var(--colortext);
|
|
font-size: 16px;
|
|
outline: none;
|
|
}
|
|
|
|
.search-box input::placeholder {
|
|
color: var(--colortextmuted);
|
|
opacity: 0.6;
|
|
}
|
|
|
|
/* ============================================
|
|
LISTS
|
|
============================================ */
|
|
|
|
.list {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
-webkit-overflow-scrolling: touch;
|
|
padding: 12px 16px 16px;
|
|
}
|
|
|
|
.list-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 14px;
|
|
padding: 14px 16px;
|
|
background: var(--colorbackline);
|
|
border: 1px solid var(--colorborder);
|
|
border-radius: 8px;
|
|
margin-bottom: 8px;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.list-item:active {
|
|
background: var(--colorbackinput);
|
|
transform: scale(0.99);
|
|
}
|
|
|
|
.list-item-icon {
|
|
width: 44px;
|
|
height: 44px;
|
|
background: var(--primary);
|
|
border-radius: 10px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.list-item-icon svg {
|
|
width: 24px;
|
|
height: 24px;
|
|
fill: #fff;
|
|
}
|
|
|
|
.list-item-content {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.list-item-title {
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.list-item-subtitle {
|
|
font-size: 13px;
|
|
color: var(--colortextmuted);
|
|
margin-top: 2px;
|
|
}
|
|
|
|
.list-item-arrow {
|
|
width: 20px;
|
|
height: 20px;
|
|
fill: var(--colortextmuted);
|
|
}
|
|
|
|
.list-empty {
|
|
text-align: center;
|
|
padding: 48px 24px;
|
|
color: var(--colortextmuted);
|
|
}
|
|
|
|
/* ============================================
|
|
ANLAGEN BAUM
|
|
============================================ */
|
|
|
|
.anlagen-grid {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0;
|
|
padding: 8px 0;
|
|
}
|
|
|
|
/* Trennlabel Kunden-Adresse */
|
|
.anlagen-section-label {
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
color: var(--colortextmuted);
|
|
padding: 8px 12px 2px;
|
|
border-top: 1px solid var(--colorborder);
|
|
margin-top: 4px;
|
|
}
|
|
|
|
/* Baum-Knoten */
|
|
.pwa-tree-node {
|
|
/* Container für Knoten + Kinder */
|
|
}
|
|
|
|
.pwa-tree-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 10px 12px;
|
|
border-bottom: 1px solid var(--colorborder);
|
|
cursor: pointer;
|
|
transition: background 0.15s;
|
|
}
|
|
|
|
.pwa-tree-row:active {
|
|
background: var(--colorbackinput);
|
|
}
|
|
|
|
/* Toggle-Chevron */
|
|
.pwa-tree-toggle {
|
|
width: 20px;
|
|
height: 20px;
|
|
fill: var(--colortextmuted);
|
|
flex-shrink: 0;
|
|
transition: transform 0.2s;
|
|
}
|
|
|
|
.pwa-tree-toggle-spacer {
|
|
width: 20px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.pwa-tree-node.expanded > .pwa-tree-row > .pwa-tree-toggle {
|
|
transform: rotate(90deg);
|
|
}
|
|
|
|
/* Icon je nach Typ */
|
|
.pwa-tree-icon {
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: 6px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.pwa-tree-icon svg {
|
|
width: 18px;
|
|
height: 18px;
|
|
fill: #fff;
|
|
}
|
|
|
|
.pwa-tree-icon.node-structure {
|
|
background: #4caf50;
|
|
}
|
|
|
|
.pwa-tree-icon.node-equipment {
|
|
background: #2196f3;
|
|
}
|
|
|
|
.pwa-tree-icon.node-leaf {
|
|
background: #ff9800;
|
|
}
|
|
|
|
/* Inhalt */
|
|
.pwa-tree-content {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.pwa-tree-label {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
word-break: break-word;
|
|
line-height: 1.3;
|
|
}
|
|
|
|
.pwa-tree-type {
|
|
font-size: 11px;
|
|
color: var(--colortextmuted);
|
|
margin-top: 1px;
|
|
}
|
|
|
|
/* Editor-Pfeil für Equipment-Container */
|
|
.pwa-tree-open {
|
|
width: 24px;
|
|
height: 24px;
|
|
fill: var(--colortextmuted);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.node-equipment > .pwa-tree-row .pwa-tree-open {
|
|
fill: #2196f3;
|
|
}
|
|
|
|
/* Kinder (eingeklappt) */
|
|
.pwa-tree-children {
|
|
display: none;
|
|
border-left: 2px solid var(--colorborder);
|
|
margin-left: 22px;
|
|
}
|
|
|
|
.pwa-tree-node.expanded > .pwa-tree-children {
|
|
display: block;
|
|
}
|
|
|
|
/* Feld-Badges (werden wiederverwendet) */
|
|
.anlage-card-fields {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 4px;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.anlage-field-badge {
|
|
font-size: 10px;
|
|
font-weight: 600;
|
|
padding: 1px 6px;
|
|
border-radius: 3px;
|
|
background: var(--colorbackinput);
|
|
color: #fff;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* ============================================
|
|
CONTACT GROUPS
|
|
============================================ */
|
|
|
|
.contact-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
width: 100%;
|
|
}
|
|
|
|
.contact-group {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.contact-group-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 12px 14px;
|
|
background: var(--colorbackline);
|
|
border: 1px solid var(--colorborder);
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.contact-group-header:active {
|
|
background: var(--colorbackinput);
|
|
}
|
|
|
|
.contact-group.expanded .contact-group-header {
|
|
border-bottom-left-radius: 0;
|
|
border-bottom-right-radius: 0;
|
|
border-bottom-color: transparent;
|
|
}
|
|
|
|
.contact-group-header svg {
|
|
width: 24px;
|
|
height: 24px;
|
|
fill: var(--warning);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.contact-group-name {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.contact-group-address {
|
|
font-size: 12px;
|
|
color: var(--colortextmuted);
|
|
margin-top: 2px;
|
|
}
|
|
|
|
.contact-group-info {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.contact-group-count {
|
|
background: var(--colorbackinput);
|
|
color: var(--colortextmuted);
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
padding: 2px 8px;
|
|
border-radius: 10px;
|
|
min-width: 24px;
|
|
text-align: center;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.contact-group-chevron {
|
|
width: 20px;
|
|
height: 20px;
|
|
fill: var(--colortextmuted);
|
|
flex-shrink: 0;
|
|
transition: transform 0.2s;
|
|
}
|
|
|
|
.contact-group.expanded .contact-group-chevron {
|
|
transform: rotate(90deg);
|
|
}
|
|
|
|
.contact-anlagen-list {
|
|
padding: 8px;
|
|
background: rgba(59, 60, 62, 0.4);
|
|
border: 1px solid var(--colorborder);
|
|
border-top: none;
|
|
border-bottom-left-radius: 8px;
|
|
border-bottom-right-radius: 8px;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
display: none;
|
|
}
|
|
|
|
.contact-group.expanded .contact-anlagen-list {
|
|
display: flex;
|
|
}
|
|
|
|
.contact-anlagen-list .loading-container,
|
|
.contact-anlagen-list .list-empty {
|
|
width: 100%;
|
|
}
|
|
|
|
.list-empty.small {
|
|
font-size: 13px;
|
|
padding: 12px;
|
|
}
|
|
|
|
.spinner.small {
|
|
width: 24px;
|
|
height: 24px;
|
|
border-width: 3px;
|
|
}
|
|
|
|
/* ============================================
|
|
EDITOR
|
|
============================================ */
|
|
|
|
.editor-content {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
-webkit-overflow-scrolling: touch;
|
|
padding: 12px;
|
|
padding-bottom: 100px;
|
|
}
|
|
|
|
.panel-card {
|
|
background: var(--colorbackline);
|
|
border: 1px solid var(--colorborder);
|
|
border-radius: 8px;
|
|
margin: 0 auto 12px auto;
|
|
overflow: hidden;
|
|
max-width: 900px;
|
|
}
|
|
|
|
.panel-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 12px 14px;
|
|
background: var(--colorbacktitle);
|
|
border-bottom: 1px solid var(--colorborder);
|
|
}
|
|
|
|
.panel-title {
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.panel-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
.panel-body {
|
|
padding: 10px;
|
|
}
|
|
|
|
/* Hutschiene */
|
|
.carrier-item {
|
|
background: var(--colorbackinput);
|
|
border: 1px solid var(--colorborder);
|
|
border-radius: 6px;
|
|
margin-bottom: 8px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.carrier-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 8px 10px;
|
|
background: rgba(255,255,255,0.03);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.carrier-label {
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: var(--colortextmuted);
|
|
}
|
|
|
|
.carrier-te {
|
|
font-size: 12px;
|
|
color: var(--colortextmuted);
|
|
opacity: 0.7;
|
|
}
|
|
|
|
/* Carrier-Content: EIN Grid für Terminals + Equipment + +-Button
|
|
Spalten: repeat(totalTE, 1fr) auto
|
|
Zeile 1: Input-Terminals (Einspeisungen)
|
|
Zeile 2: Equipment-Blöcke + +-Button
|
|
Zeile 3: Output-Terminals (Abgänge) */
|
|
.carrier-content {
|
|
display: grid;
|
|
gap: 2px;
|
|
padding: 5px;
|
|
grid-template-rows: auto auto auto;
|
|
align-items: stretch;
|
|
}
|
|
|
|
/* Equipment Block (Zeile 2) - Sicherungsautomat-Optik */
|
|
.equipment-block {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
min-width: 0;
|
|
height: 80px;
|
|
padding: 4px 2px;
|
|
background: var(--primary);
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
transition: all 0.15s ease;
|
|
overflow: hidden;
|
|
border: 1px solid rgba(255,255,255,0.15);
|
|
box-shadow: 0 1px 3px rgba(0,0,0,0.3);
|
|
}
|
|
|
|
.equipment-block:active {
|
|
transform: scale(0.95);
|
|
}
|
|
|
|
.equipment-block-type {
|
|
font-size: 9px;
|
|
font-weight: bold;
|
|
color: #fff;
|
|
line-height: 1.1;
|
|
}
|
|
|
|
.equipment-block-value {
|
|
font-size: 13px;
|
|
font-weight: bold;
|
|
color: #fff;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.equipment-block-label {
|
|
font-size: 8px;
|
|
color: rgba(255,255,255,0.7);
|
|
max-width: 100%;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
line-height: 1.1;
|
|
}
|
|
|
|
/* Equipment Block Text (einzelner Block-Label wie "B16") */
|
|
.equipment-block-text {
|
|
font-size: 11px;
|
|
font-weight: bold;
|
|
color: #fff;
|
|
line-height: 1.1;
|
|
text-align: center;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
max-width: 100%;
|
|
padding: 0 1px;
|
|
}
|
|
|
|
/* Terminal-Point = Einzelne klickbare Klemme
|
|
Sitzt in derselben Grid-Spalte wie der zugehörige Equipment-Block */
|
|
.terminal-point {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 2px;
|
|
cursor: pointer;
|
|
padding: 3px 2px;
|
|
border-radius: 4px;
|
|
transition: background 0.15s;
|
|
min-width: 0;
|
|
}
|
|
|
|
.terminal-point.terminal-input {
|
|
align-self: end;
|
|
}
|
|
|
|
.terminal-point.terminal-output {
|
|
align-self: start;
|
|
}
|
|
|
|
.terminal-point:active {
|
|
background: rgba(255,255,255,0.15);
|
|
}
|
|
|
|
/* Terminal-Punkt (Kreis für Inputs) */
|
|
.terminal-dot {
|
|
width: 10px;
|
|
height: 10px;
|
|
border-radius: 50%;
|
|
flex-shrink: 0;
|
|
border: 2px solid rgba(255,255,255,0.5);
|
|
}
|
|
|
|
.terminal-dot.terminal-empty {
|
|
background: transparent;
|
|
border: 2px dashed rgba(255,255,255,0.25);
|
|
}
|
|
|
|
/* Terminal-Pfeil (für Outputs) */
|
|
.terminal-arrow {
|
|
width: 0;
|
|
height: 0;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.terminal-arrow-down {
|
|
border-left: 7px solid transparent;
|
|
border-right: 7px solid transparent;
|
|
border-top: 10px solid var(--arrow-color, #888);
|
|
}
|
|
|
|
.terminal-arrow-up {
|
|
border-left: 7px solid transparent;
|
|
border-right: 7px solid transparent;
|
|
border-bottom: 10px solid var(--arrow-color, #888);
|
|
}
|
|
|
|
/* Phase-Anzeige am Terminal */
|
|
.terminal-phase {
|
|
font-size: 8px;
|
|
font-weight: bold;
|
|
color: rgba(255,255,255,0.7);
|
|
text-align: center;
|
|
line-height: 1;
|
|
}
|
|
|
|
/* Abgang-Label (vertikal) */
|
|
.terminal-label {
|
|
writing-mode: vertical-rl;
|
|
transform: rotate(180deg);
|
|
font-size: 9px;
|
|
font-weight: bold;
|
|
color: #fff;
|
|
line-height: 1.1;
|
|
max-height: 90px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
padding: 2px 0;
|
|
}
|
|
|
|
.terminal-label .cable-info {
|
|
font-weight: normal;
|
|
font-size: 8px;
|
|
color: #888;
|
|
}
|
|
|
|
/* Output-Zeile braucht mehr Platz wenn Labels vorhanden */
|
|
/* Add Button in Carrier (letzte Spalte, Zeile 2) */
|
|
.btn-add-equipment {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 36px;
|
|
min-width: 36px;
|
|
padding: 4px;
|
|
background: transparent;
|
|
border: 2px dashed var(--colorborder);
|
|
border-radius: 4px;
|
|
color: var(--colortextmuted);
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.btn-add-equipment:active:not(.disabled) {
|
|
background: rgba(255,255,255,0.05);
|
|
border-color: var(--primary);
|
|
color: var(--primary);
|
|
}
|
|
|
|
.btn-add-equipment.disabled {
|
|
opacity: 0.25;
|
|
cursor: not-allowed;
|
|
border-style: dotted;
|
|
}
|
|
|
|
.btn-add-equipment svg {
|
|
width: 24px;
|
|
height: 24px;
|
|
fill: currentColor;
|
|
}
|
|
|
|
/* Add Carrier Button */
|
|
.btn-add-carrier {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
padding: 12px;
|
|
background: transparent;
|
|
border: 2px dashed var(--colorborder);
|
|
border-radius: 6px;
|
|
color: var(--colortextmuted);
|
|
font-size: 14px;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.btn-add-carrier:active {
|
|
border-color: var(--primary);
|
|
color: var(--primary);
|
|
}
|
|
|
|
.btn-add-carrier svg {
|
|
width: 20px;
|
|
height: 20px;
|
|
fill: currentColor;
|
|
}
|
|
|
|
/* ============================================
|
|
FAB (Floating Action Button)
|
|
============================================ */
|
|
|
|
.fab-container {
|
|
position: fixed;
|
|
bottom: 24px;
|
|
right: 24px;
|
|
padding-bottom: var(--safe-bottom);
|
|
z-index: 100;
|
|
}
|
|
|
|
.fab {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 14px 20px;
|
|
background: var(--butactionbg);
|
|
color: var(--textbutaction);
|
|
border: none;
|
|
border-radius: 30px;
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.fab:active {
|
|
transform: scale(0.95);
|
|
opacity: 0.9;
|
|
}
|
|
|
|
.fab svg {
|
|
width: 22px;
|
|
height: 22px;
|
|
fill: currentColor;
|
|
}
|
|
|
|
/* ============================================
|
|
MODALS
|
|
============================================ */
|
|
|
|
.modal {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: rgba(0,0,0,0.7);
|
|
display: none;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 1000;
|
|
padding: 16px;
|
|
padding-bottom: calc(16px + var(--safe-bottom));
|
|
}
|
|
|
|
.modal.active {
|
|
display: flex;
|
|
}
|
|
|
|
.modal-content {
|
|
width: 100%;
|
|
max-width: 500px;
|
|
max-height: 85vh;
|
|
background: var(--colorbackline);
|
|
border: 1px solid var(--colorborder);
|
|
border-radius: 12px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
animation: modalFadeIn 0.25s ease;
|
|
}
|
|
|
|
.modal-small {
|
|
max-height: auto;
|
|
}
|
|
|
|
@keyframes modalFadeIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: scale(0.95);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: scale(1);
|
|
}
|
|
}
|
|
|
|
.modal-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 16px 20px;
|
|
border-bottom: 1px solid var(--colorborder);
|
|
background: var(--colorbacktitle);
|
|
}
|
|
|
|
.modal-header h2 {
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.modal-close {
|
|
width: 36px;
|
|
height: 36px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: transparent;
|
|
border: none;
|
|
color: var(--colortextmuted);
|
|
font-size: 28px;
|
|
cursor: pointer;
|
|
border-radius: 50%;
|
|
}
|
|
|
|
.modal-close:active {
|
|
background: rgba(255,255,255,0.1);
|
|
}
|
|
|
|
.modal-body {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 20px;
|
|
}
|
|
|
|
.modal-footer {
|
|
display: flex;
|
|
gap: 12px;
|
|
padding: 16px 20px;
|
|
border-top: 1px solid var(--colorborder);
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.modal-footer .btn {
|
|
flex: 0 1 auto;
|
|
}
|
|
|
|
.modal-footer-right {
|
|
display: flex;
|
|
gap: 12px;
|
|
flex: 1;
|
|
}
|
|
|
|
.modal-footer-right .btn {
|
|
flex: 1;
|
|
}
|
|
|
|
/* Wenn kein Delete-Button sichtbar: Footer-Right nimmt volle Breite */
|
|
.modal-footer .btn-danger.hidden + .modal-footer-right {
|
|
width: 100%;
|
|
}
|
|
|
|
/* ============================================
|
|
TYPE GRID
|
|
============================================ */
|
|
|
|
/* Zurück-Button im Modal-Header */
|
|
.btn-back-modal {
|
|
background: none;
|
|
border: none;
|
|
color: var(--colortext);
|
|
padding: 4px;
|
|
cursor: pointer;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.btn-back-modal svg {
|
|
width: 24px;
|
|
height: 24px;
|
|
fill: currentColor;
|
|
}
|
|
|
|
/* Dynamische Felder */
|
|
#eq-dynamic-fields .form-group {
|
|
margin-bottom: 14px;
|
|
}
|
|
|
|
#eq-dynamic-fields .form-select {
|
|
width: 100%;
|
|
padding: 12px;
|
|
background: var(--colorbackinput);
|
|
border: 1px solid var(--colorborder);
|
|
border-radius: 8px;
|
|
color: var(--colortext);
|
|
font-size: 16px;
|
|
-webkit-appearance: none;
|
|
appearance: none;
|
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23888'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
|
|
background-repeat: no-repeat;
|
|
background-position: right 8px center;
|
|
background-size: 24px;
|
|
}
|
|
|
|
#eq-dynamic-fields .form-input {
|
|
width: 100%;
|
|
padding: 12px;
|
|
background: var(--colorbackinput);
|
|
border: 1px solid var(--colorborder);
|
|
border-radius: 8px;
|
|
color: var(--colortext);
|
|
font-size: 16px;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.field-required {
|
|
color: var(--danger);
|
|
font-weight: bold;
|
|
}
|
|
|
|
.field-error {
|
|
border-color: var(--danger) !important;
|
|
}
|
|
|
|
.checkbox-label {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-size: 16px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.checkbox-label input[type="checkbox"] {
|
|
width: 20px;
|
|
height: 20px;
|
|
}
|
|
|
|
.step-label {
|
|
font-size: 14px;
|
|
color: var(--colortextmuted);
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.type-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 8px;
|
|
}
|
|
|
|
.type-btn {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 14px 6px;
|
|
background: var(--colorbackinput);
|
|
border: 2px solid var(--colorborder);
|
|
border-radius: 8px;
|
|
color: var(--colortext);
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.type-btn:active,
|
|
.type-btn.selected {
|
|
border-color: var(--butactionbg);
|
|
background: rgba(173, 140, 79, 0.15);
|
|
}
|
|
|
|
.type-btn.disabled {
|
|
opacity: 0.3;
|
|
cursor: not-allowed;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.type-btn-icon {
|
|
font-size: 24px;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.type-btn-label {
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
text-align: center;
|
|
}
|
|
|
|
.te-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: 10px;
|
|
}
|
|
|
|
.te-btn {
|
|
padding: 20px;
|
|
background: var(--colorbackinput);
|
|
border: 2px solid var(--colorborder);
|
|
border-radius: 8px;
|
|
color: var(--colortext);
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.te-btn:active,
|
|
.te-btn.selected {
|
|
border-color: var(--butactionbg);
|
|
background: rgba(173, 140, 79, 0.15);
|
|
}
|
|
|
|
/* Connection Modal - Phase Grid */
|
|
.phase-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, 1fr);
|
|
gap: 6px;
|
|
}
|
|
|
|
.phase-btn {
|
|
padding: 10px 4px;
|
|
background: var(--colorbackinput);
|
|
border: 2px solid var(--colorborder);
|
|
border-radius: 8px;
|
|
color: var(--colortext);
|
|
font-size: 14px;
|
|
font-weight: 700;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
text-align: center;
|
|
}
|
|
|
|
.phase-btn:active,
|
|
.phase-btn.selected {
|
|
border-color: var(--butactionbg);
|
|
background: rgba(173, 140, 79, 0.15);
|
|
}
|
|
|
|
/* Phasen-Farben für Buttons */
|
|
.phase-btn[data-type="L1"].selected { border-color: #8B4513; background: rgba(139,69,19,0.2); }
|
|
.phase-btn[data-type="L2"].selected { border-color: #555; background: rgba(50,50,50,0.3); }
|
|
.phase-btn[data-type="L3"].selected { border-color: #888; background: rgba(100,100,100,0.2); }
|
|
.phase-btn[data-type="N"].selected { border-color: #0066cc; background: rgba(0,102,204,0.2); }
|
|
.phase-btn[data-type="PE"].selected { border-color: #27ae60; background: rgba(39,174,96,0.2); }
|
|
.phase-btn[data-type="L1N"].selected { border-color: #8B4513; background: rgba(139,69,19,0.2); }
|
|
.phase-btn[data-type="3P"].selected { border-color: #e74c3c; background: rgba(231,76,60,0.2); }
|
|
.phase-btn[data-type="3P+N"].selected { border-color: #e74c3c; background: rgba(231,76,60,0.2); }
|
|
.phase-btn[data-type="L2N"].selected { border-color: #555; background: rgba(50,50,50,0.3); }
|
|
.phase-btn[data-type="L3N"].selected { border-color: #888; background: rgba(100,100,100,0.2); }
|
|
.phase-btn[data-type="DATA"].selected { border-color: #9b59b6; background: rgba(155,89,182,0.2); }
|
|
|
|
/* Abgangsseite-Buttons */
|
|
.side-grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 6px;
|
|
}
|
|
|
|
.side-btn {
|
|
padding: 10px 4px;
|
|
background: var(--colorbackinput);
|
|
border: 2px solid var(--colorborder);
|
|
border-radius: 8px;
|
|
color: var(--colortext);
|
|
font-size: 14px;
|
|
font-weight: 700;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
text-align: center;
|
|
}
|
|
|
|
.side-btn:active,
|
|
.side-btn.selected {
|
|
border-color: var(--butactionbg);
|
|
background: rgba(173, 140, 79, 0.15);
|
|
}
|
|
|
|
/* Connection Modal - Typ + Farbe nebeneinander */
|
|
.form-row {
|
|
display: flex;
|
|
gap: 10px;
|
|
align-items: flex-end;
|
|
}
|
|
|
|
.form-group-grow {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.form-group-color {
|
|
flex: 0 0 auto;
|
|
width: 60px;
|
|
}
|
|
|
|
.form-color {
|
|
width: 100%;
|
|
height: 44px;
|
|
padding: 2px;
|
|
background: var(--colorbackinput);
|
|
border: 1px solid var(--colorborder);
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
/* Connection Modal - optgroup Styles */
|
|
#modal-connection .form-select optgroup {
|
|
font-weight: bold;
|
|
color: var(--colortext);
|
|
}
|
|
|
|
/* Connection Modal - form-select/form-input global */
|
|
#modal-connection .form-select,
|
|
#modal-connection .form-input {
|
|
width: 100%;
|
|
padding: 12px;
|
|
background: var(--colorbackinput);
|
|
border: 1px solid var(--colorborder);
|
|
border-radius: 8px;
|
|
color: var(--colortext);
|
|
font-size: 16px;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
#modal-connection .form-select {
|
|
-webkit-appearance: none;
|
|
appearance: none;
|
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23888'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
|
|
background-repeat: no-repeat;
|
|
background-position: right 8px center;
|
|
background-size: 24px;
|
|
}
|
|
|
|
/* ============================================
|
|
OFFLINE BAR
|
|
============================================ */
|
|
|
|
.offline-bar {
|
|
position: fixed;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
padding: 10px;
|
|
padding-bottom: calc(10px + var(--safe-bottom));
|
|
background: var(--warning);
|
|
color: #000;
|
|
text-align: center;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
z-index: 500;
|
|
}
|
|
|
|
.offline-bar.hidden {
|
|
display: none;
|
|
}
|
|
|
|
/* ============================================
|
|
TOAST
|
|
============================================ */
|
|
|
|
.toast {
|
|
position: fixed;
|
|
bottom: 80px;
|
|
left: 50%;
|
|
transform: translateX(-50%) translateY(15px);
|
|
padding: 14px 28px;
|
|
background: var(--colorbacktitle);
|
|
border: 1px solid var(--colorborder);
|
|
border-radius: 10px;
|
|
color: var(--colortext);
|
|
font-size: 15px;
|
|
font-weight: 500;
|
|
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
|
|
opacity: 0;
|
|
transition: all 0.3s ease;
|
|
z-index: 2000;
|
|
max-width: 90%;
|
|
text-align: center;
|
|
}
|
|
|
|
.toast.visible {
|
|
transform: translateX(-50%) translateY(0);
|
|
opacity: 1;
|
|
}
|
|
|
|
.toast.success {
|
|
background: var(--success);
|
|
border-color: var(--success);
|
|
color: #fff;
|
|
}
|
|
|
|
.toast.error {
|
|
background: var(--danger);
|
|
border-color: var(--danger);
|
|
color: #fff;
|
|
}
|
|
|
|
.toast.warning {
|
|
background: var(--warning);
|
|
border-color: var(--warning);
|
|
color: #000;
|
|
}
|
|
|
|
/* ============================================
|
|
UTILITIES
|
|
============================================ */
|
|
|
|
.hidden {
|
|
display: none !important;
|
|
}
|
|
|
|
.text-center {
|
|
text-align: center;
|
|
}
|
|
|
|
.text-muted {
|
|
color: var(--colortextmuted);
|
|
}
|
|
|
|
/* Loading Spinner */
|
|
.spinner {
|
|
width: 40px;
|
|
height: 40px;
|
|
border: 3px solid var(--colorborder);
|
|
border-top-color: var(--primary);
|
|
border-radius: 50%;
|
|
animation: spin 0.8s linear infinite;
|
|
}
|
|
|
|
@keyframes spin {
|
|
to { transform: rotate(360deg); }
|
|
}
|
|
|
|
.loading-container {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 16px;
|
|
}
|
|
|
|
/* ============================================
|
|
MOBILE OPTIMIERUNGEN
|
|
============================================ */
|
|
|
|
@media (max-width: 768px) {
|
|
.type-grid {
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 6px;
|
|
}
|
|
|
|
.type-btn {
|
|
padding: 12px 4px;
|
|
}
|
|
|
|
.fab {
|
|
padding: 12px 18px;
|
|
font-size: 14px;
|
|
}
|
|
}
|
|
|
|
/* Touch Targets */
|
|
@media (pointer: coarse) {
|
|
.btn,
|
|
.btn-large,
|
|
.te-btn,
|
|
.list-item,
|
|
.contact-group-header,
|
|
.pwa-tree-row {
|
|
min-height: 48px;
|
|
}
|
|
|
|
.value-chip {
|
|
min-height: 44px;
|
|
}
|
|
}
|