- Kontakt-Adressen als aufklappbare Gruppen in Anlagen-Übersicht - Equipment-Blöcke als CSS Grid (TE-basiert) statt Flex-Wrap - Abgang-Labels (Outputs) über/unter Automaten, Toggle-Button - jQuery statt eigener ElementCollection, aus Dolibarr geladen - Design-System auf Dolibarr Dark Theme Variablen umgestellt - Session-State-Wiederherstellung bei Refresh - Browser-History Support (Hardware-Zurück) - Quick-Select erweitert: AFDD, FI/LS-Kombi - Intelligente Positionsberechnung mit Lücken-Erkennung - Hutschiene zeigt belegt/gesamt TE - $user->getrights() nach Token-Validierung - Doku aktualisiert Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1308 lines
22 KiB
CSS
1308 lines
22 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 GRID
|
|
============================================ */
|
|
|
|
.anlagen-grid {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 10px;
|
|
padding: 16px;
|
|
}
|
|
|
|
.anlagen-grid > .anlage-card {
|
|
width: calc(50% - 5px);
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.anlagen-grid > .contact-group {
|
|
width: 100%;
|
|
}
|
|
|
|
.anlage-card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
padding: 18px 14px;
|
|
background: var(--colorbackline);
|
|
border: 1px solid var(--colorborder);
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.anlage-card:active {
|
|
background: var(--colorbackinput);
|
|
transform: scale(0.98);
|
|
}
|
|
|
|
.anlage-card-icon {
|
|
width: 52px;
|
|
height: 52px;
|
|
background: var(--success);
|
|
border-radius: 12px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.anlage-card-icon svg {
|
|
width: 28px;
|
|
height: 28px;
|
|
fill: #fff;
|
|
}
|
|
|
|
.anlage-card-title {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
text-align: center;
|
|
word-break: break-word;
|
|
}
|
|
|
|
.anlage-card-type {
|
|
font-size: 11px;
|
|
color: var(--colortextmuted);
|
|
margin-top: 4px;
|
|
}
|
|
|
|
/* ============================================
|
|
CONTACT GROUPS
|
|
============================================ */
|
|
|
|
.contact-group {
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.contact-group-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 14px 16px;
|
|
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-count {
|
|
margin-left: auto;
|
|
background: var(--colorbackinput);
|
|
color: var(--colortextmuted);
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
padding: 2px 8px;
|
|
border-radius: 10px;
|
|
min-width: 24px;
|
|
text-align: center;
|
|
}
|
|
|
|
.contact-anlagen-list {
|
|
padding: 10px;
|
|
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-wrap: wrap;
|
|
gap: 8px;
|
|
display: none;
|
|
}
|
|
|
|
.contact-group.expanded .contact-anlagen-list {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
.contact-anlagen-list .anlage-card {
|
|
width: calc(50% - 4px);
|
|
padding: 14px 10px;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.contact-anlagen-list .anlage-card-icon {
|
|
width: 44px;
|
|
height: 44px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.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-bottom: 12px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.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);
|
|
}
|
|
|
|
.carrier-label {
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: var(--colortextmuted);
|
|
}
|
|
|
|
.carrier-te {
|
|
font-size: 12px;
|
|
color: var(--colortextmuted);
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.carrier-body {
|
|
padding: 5px;
|
|
display: flex;
|
|
align-items: stretch;
|
|
gap: 3px;
|
|
min-height: 50px;
|
|
}
|
|
|
|
.carrier-grid {
|
|
flex: 1;
|
|
min-width: 0;
|
|
display: grid;
|
|
gap: 2px;
|
|
}
|
|
|
|
/* Equipment Block */
|
|
.equipment-block {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-width: 0;
|
|
height: 52px;
|
|
padding: 2px 1px;
|
|
background: var(--primary);
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
transition: all 0.15s ease;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.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: 11px;
|
|
font-weight: bold;
|
|
color: #fff;
|
|
line-height: 1.1;
|
|
}
|
|
|
|
.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;
|
|
}
|
|
|
|
/* Abgang-Labels (Zeile über/unter den Blöcken) */
|
|
.carrier-labels {
|
|
display: grid;
|
|
gap: 2px;
|
|
padding: 0 5px;
|
|
min-height: 120px;
|
|
}
|
|
|
|
.carrier-label-cell {
|
|
display: flex;
|
|
align-items: flex-end;
|
|
justify-content: center;
|
|
min-width: 0;
|
|
overflow: visible;
|
|
}
|
|
|
|
/* Labels oben: Text vertikal von unten nach oben */
|
|
.labels-top .carrier-labels {
|
|
align-items: end;
|
|
}
|
|
|
|
.labels-top .carrier-label-text {
|
|
writing-mode: vertical-rl;
|
|
transform: rotate(180deg);
|
|
font-size: 11px;
|
|
font-weight: bold;
|
|
color: #fff;
|
|
line-height: 1.3;
|
|
max-height: 150px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
padding: 4px 0;
|
|
}
|
|
|
|
.labels-top .carrier-label-text .cable-info {
|
|
font-weight: normal;
|
|
font-size: 10px;
|
|
color: #888;
|
|
}
|
|
|
|
/* Labels unten: Text vertikal von oben nach unten */
|
|
.labels-bottom .carrier-labels {
|
|
align-items: start;
|
|
}
|
|
|
|
.labels-bottom .carrier-label-cell {
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.labels-bottom .carrier-label-text {
|
|
writing-mode: vertical-rl;
|
|
font-size: 11px;
|
|
font-weight: bold;
|
|
color: #fff;
|
|
line-height: 1.3;
|
|
max-height: 150px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
padding: 4px 0;
|
|
}
|
|
|
|
.labels-bottom .carrier-label-text .cable-info {
|
|
font-weight: normal;
|
|
font-size: 10px;
|
|
color: #888;
|
|
}
|
|
|
|
/* Toggle-Button für Label-Position */
|
|
.btn-toggle-labels {
|
|
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, transform 0.3s;
|
|
}
|
|
|
|
.btn-toggle-labels:active {
|
|
background: rgba(255,255,255,0.3);
|
|
}
|
|
|
|
.btn-toggle-labels svg {
|
|
width: 22px;
|
|
height: 22px;
|
|
fill: currentColor;
|
|
}
|
|
|
|
/* Pfeil nach oben = Labels oben */
|
|
.btn-toggle-labels.labels-top svg {
|
|
transform: rotate(0deg);
|
|
}
|
|
|
|
/* Pfeil nach unten = Labels unten */
|
|
.btn-toggle-labels.labels-bottom svg {
|
|
transform: rotate(180deg);
|
|
}
|
|
|
|
/* Add Button in Carrier */
|
|
.btn-add-equipment {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 36px;
|
|
min-width: 36px;
|
|
flex-shrink: 0;
|
|
align-self: stretch;
|
|
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: flex-end;
|
|
justify-content: center;
|
|
z-index: 1000;
|
|
padding: 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 12px 0 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
animation: slideUp 0.3s ease;
|
|
}
|
|
|
|
.modal-small {
|
|
max-height: auto;
|
|
}
|
|
|
|
@keyframes slideUp {
|
|
from {
|
|
transform: translateY(100%);
|
|
}
|
|
to {
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.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);
|
|
}
|
|
|
|
.modal-footer .btn {
|
|
flex: 1;
|
|
}
|
|
|
|
/* ============================================
|
|
TYPE GRID
|
|
============================================ */
|
|
|
|
.step-values-area {
|
|
display: none;
|
|
margin-top: 16px;
|
|
padding-top: 16px;
|
|
border-top: 1px solid var(--colorborder);
|
|
}
|
|
|
|
.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-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);
|
|
}
|
|
|
|
/* Value Quick Select */
|
|
.value-quick {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.value-chip {
|
|
padding: 10px 16px;
|
|
background: var(--colorbackinput);
|
|
border: 1px solid var(--colorborder);
|
|
border-radius: 20px;
|
|
color: var(--colortext);
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.value-chip:active,
|
|
.value-chip.selected {
|
|
background: var(--butactionbg);
|
|
border-color: var(--butactionbg);
|
|
color: var(--textbutaction);
|
|
}
|
|
|
|
/* ============================================
|
|
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,
|
|
.anlage-card {
|
|
min-height: 48px;
|
|
}
|
|
|
|
.value-chip {
|
|
min-height: 44px;
|
|
}
|
|
}
|