- FAB (Plus-Button unten rechts) nur noch auf Panel 0 (STZ-Liste) sichtbar,
Panel 1 hat bereits den Inline-Button "+ Leistung hinzufügen"
- Lösch-Button (🗑️) für verbaute Produkte (order/added) im Product-Card-Header
mit Bestätigungsdialog hinzugefügt
- Cache-Busting auf v=2.7
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1206 lines
22 KiB
CSS
1206 lines
22 KiB
CSS
/**
|
|
* Stundenzettel PWA - Mobile-First Dark Theme
|
|
* Version 1.0
|
|
*/
|
|
|
|
/* === CSS-Variablen === */
|
|
:root {
|
|
--colorbackbody: #1d1e20;
|
|
--colorbackcard: #2a2b2d;
|
|
--colorbacktitle: #3b3c3e;
|
|
--colorbackline: #38393d;
|
|
--colorbackinput: rgb(70, 70, 70);
|
|
--colortext: rgb(220, 220, 220);
|
|
--colortextmuted: rgb(160, 160, 160);
|
|
--colortextlink: #4390dc;
|
|
--colorborder: #3a3b3d;
|
|
--success: #25a580;
|
|
--danger: #c0392b;
|
|
--warning: #bc9526;
|
|
--info: #2980b9;
|
|
--badge-order: #2980b9;
|
|
--badge-added: #6c757d;
|
|
--badge-additional: #bc9526;
|
|
--badge-omitted: #6c757d;
|
|
--badge-returned: #c0392b;
|
|
}
|
|
|
|
/* === Reset & Basis === */
|
|
* {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
|
|
background: var(--colorbackbody);
|
|
color: var(--colortext);
|
|
min-height: 100vh;
|
|
min-height: 100dvh;
|
|
overflow-x: hidden;
|
|
font-size: 15px;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.app {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 100vh;
|
|
min-height: 100dvh;
|
|
}
|
|
|
|
/* === Screens === */
|
|
.screen {
|
|
display: none;
|
|
flex: 1;
|
|
flex-direction: column;
|
|
}
|
|
.screen.active {
|
|
display: flex;
|
|
}
|
|
|
|
/* === Login-Screen === */
|
|
.login-screen {
|
|
justify-content: center;
|
|
align-items: center;
|
|
padding: 20px;
|
|
}
|
|
.login-container {
|
|
width: 100%;
|
|
max-width: 360px;
|
|
text-align: center;
|
|
}
|
|
.login-logo {
|
|
width: 80px;
|
|
height: 80px;
|
|
margin: 0 auto 16px;
|
|
color: var(--primary, #4390dc);
|
|
}
|
|
.login-logo svg {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
.login-title {
|
|
font-size: 24px;
|
|
font-weight: 600;
|
|
margin-bottom: 4px;
|
|
}
|
|
.login-subtitle {
|
|
font-size: 14px;
|
|
color: var(--colortextmuted);
|
|
margin-bottom: 32px;
|
|
}
|
|
.login-form {
|
|
text-align: left;
|
|
}
|
|
.form-group {
|
|
margin-bottom: 16px;
|
|
}
|
|
.form-group label {
|
|
display: block;
|
|
font-size: 13px;
|
|
color: var(--colortextmuted);
|
|
margin-bottom: 6px;
|
|
}
|
|
.form-group input {
|
|
width: 100%;
|
|
padding: 12px 14px;
|
|
background: var(--colorbackinput);
|
|
border: 1px solid var(--colorborder);
|
|
border-radius: 8px;
|
|
color: var(--colortext);
|
|
font-size: 16px;
|
|
min-height: 48px;
|
|
outline: none;
|
|
transition: border-color 0.2s;
|
|
}
|
|
.form-group input:focus {
|
|
border-color: var(--primary, #4390dc);
|
|
}
|
|
.error-text {
|
|
color: var(--danger);
|
|
font-size: 13px;
|
|
margin-top: 12px;
|
|
text-align: center;
|
|
min-height: 20px;
|
|
}
|
|
|
|
/* === Buttons === */
|
|
.btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 12px 20px;
|
|
border: none;
|
|
border-radius: 8px;
|
|
font-size: 15px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
min-height: 48px;
|
|
transition: opacity 0.2s, transform 0.1s;
|
|
text-decoration: none;
|
|
}
|
|
.btn:active {
|
|
transform: scale(0.97);
|
|
opacity: 0.85;
|
|
}
|
|
.btn-primary {
|
|
background: var(--primary, #4390dc);
|
|
color: #fff;
|
|
width: 100%;
|
|
}
|
|
.btn-success {
|
|
background: var(--success);
|
|
color: #fff;
|
|
}
|
|
.btn-danger {
|
|
background: var(--danger);
|
|
color: #fff;
|
|
}
|
|
.btn-ghost {
|
|
background: transparent;
|
|
color: var(--colortextlink);
|
|
border: 1px solid var(--colorborder);
|
|
}
|
|
.btn-small {
|
|
padding: 8px 14px;
|
|
min-height: 36px;
|
|
font-size: 13px;
|
|
}
|
|
.btn-icon {
|
|
width: 44px;
|
|
height: 44px;
|
|
padding: 0;
|
|
border-radius: 50%;
|
|
font-size: 18px;
|
|
}
|
|
.btn:disabled {
|
|
opacity: 0.5;
|
|
pointer-events: none;
|
|
}
|
|
|
|
/* === Search-Screen === */
|
|
.search-screen {
|
|
flex-direction: column;
|
|
}
|
|
.search-header {
|
|
padding: 12px 16px;
|
|
background: var(--colorbackcard);
|
|
border-bottom: 1px solid var(--colorborder);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 10;
|
|
}
|
|
.search-header .user-name {
|
|
font-size: 13px;
|
|
color: var(--colortextmuted);
|
|
white-space: nowrap;
|
|
}
|
|
.search-input-wrap {
|
|
flex: 1;
|
|
position: relative;
|
|
}
|
|
.search-input-wrap input {
|
|
width: 100%;
|
|
padding: 10px 14px 10px 38px;
|
|
background: var(--colorbackinput);
|
|
border: 1px solid var(--colorborder);
|
|
border-radius: 8px;
|
|
color: var(--colortext);
|
|
font-size: 16px;
|
|
min-height: 44px;
|
|
outline: none;
|
|
}
|
|
.search-input-wrap input:focus {
|
|
border-color: var(--primary, #4390dc);
|
|
}
|
|
.search-input-wrap .search-icon {
|
|
position: absolute;
|
|
left: 12px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
color: var(--colortextmuted);
|
|
font-size: 16px;
|
|
pointer-events: none;
|
|
}
|
|
.search-results {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 8px;
|
|
-webkit-overflow-scrolling: touch;
|
|
}
|
|
.search-empty {
|
|
text-align: center;
|
|
color: var(--colortextmuted);
|
|
padding: 40px 20px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
/* === Kunden- und Auftrags-Cards === */
|
|
.customer-card {
|
|
background: var(--colorbackcard);
|
|
border-radius: 10px;
|
|
margin-bottom: 8px;
|
|
overflow: hidden;
|
|
}
|
|
.customer-header {
|
|
padding: 14px 16px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
cursor: pointer;
|
|
}
|
|
.customer-header:active {
|
|
background: var(--colorbackline);
|
|
}
|
|
.customer-name {
|
|
font-weight: 600;
|
|
font-size: 15px;
|
|
}
|
|
.customer-badge {
|
|
font-size: 12px;
|
|
color: var(--colortextmuted);
|
|
background: var(--colorbacktitle);
|
|
padding: 3px 8px;
|
|
border-radius: 12px;
|
|
}
|
|
.customer-orders {
|
|
display: none;
|
|
border-top: 1px solid var(--colorborder);
|
|
}
|
|
.customer-orders.open {
|
|
display: block;
|
|
}
|
|
.order-item {
|
|
padding: 12px 16px;
|
|
border-bottom: 1px solid var(--colorborder);
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
.order-item:last-child {
|
|
border-bottom: none;
|
|
}
|
|
.order-item:active {
|
|
background: var(--colorbackline);
|
|
}
|
|
.order-ref {
|
|
font-weight: 500;
|
|
font-size: 14px;
|
|
}
|
|
.order-client-ref {
|
|
font-size: 13px;
|
|
color: var(--colortext);
|
|
margin-top: 2px;
|
|
opacity: 0.85;
|
|
}
|
|
.order-date {
|
|
font-size: 12px;
|
|
color: var(--colortextmuted);
|
|
margin-top: 2px;
|
|
}
|
|
.order-stz-badge {
|
|
font-size: 11px;
|
|
padding: 3px 8px;
|
|
border-radius: 10px;
|
|
background: var(--success);
|
|
color: #fff;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* === Main-Screen mit Swipe === */
|
|
.main-screen {
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* Tab-Bar */
|
|
.tab-bar {
|
|
display: flex;
|
|
background: var(--colorbackcard);
|
|
border-bottom: 1px solid var(--colorborder);
|
|
position: relative;
|
|
flex-shrink: 0;
|
|
}
|
|
.tab-bar .back-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 44px;
|
|
color: var(--colortextlink);
|
|
border-right: 1px solid var(--colorborder);
|
|
cursor: pointer;
|
|
font-size: 18px;
|
|
flex-shrink: 0;
|
|
}
|
|
.tab-bar .back-btn:active {
|
|
background: var(--colorbackline);
|
|
}
|
|
.tab-items {
|
|
display: flex;
|
|
flex: 1;
|
|
overflow-x: auto;
|
|
scrollbar-width: none;
|
|
-ms-overflow-style: none;
|
|
}
|
|
.tab-items::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
.tab-item {
|
|
flex: 1;
|
|
min-width: 0;
|
|
padding: 12px 8px;
|
|
text-align: center;
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
color: var(--colortextmuted);
|
|
cursor: pointer;
|
|
white-space: nowrap;
|
|
border-bottom: 2px solid transparent;
|
|
transition: color 0.2s, border-color 0.2s;
|
|
}
|
|
.tab-item:active {
|
|
background: var(--colorbackline);
|
|
}
|
|
.tab-item.active {
|
|
color: var(--primary, #4390dc);
|
|
border-bottom-color: var(--primary, #4390dc);
|
|
}
|
|
|
|
/* Swipe-Container */
|
|
.swipe-viewport {
|
|
flex: 1;
|
|
overflow: hidden;
|
|
position: relative;
|
|
}
|
|
.swipe-container {
|
|
display: flex;
|
|
width: 400%;
|
|
height: 100%;
|
|
will-change: transform;
|
|
}
|
|
.swipe-container.animating {
|
|
transition: transform 300ms ease-out;
|
|
}
|
|
.swipe-panel {
|
|
width: 25%;
|
|
height: 100%;
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
-webkit-overflow-scrolling: touch;
|
|
padding: 8px;
|
|
}
|
|
|
|
/* === Info-Header (Auftrag + STZ Info) === */
|
|
.info-header {
|
|
background: var(--colorbackcard);
|
|
border-radius: 10px;
|
|
padding: 12px 14px;
|
|
margin-bottom: 8px;
|
|
}
|
|
.info-header-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
.info-header-row + .info-header-row {
|
|
margin-top: 6px;
|
|
}
|
|
.info-label {
|
|
font-size: 12px;
|
|
color: var(--colortextmuted);
|
|
}
|
|
.info-value {
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* === Badges === */
|
|
.badge {
|
|
display: inline-block;
|
|
font-size: 11px;
|
|
font-weight: 500;
|
|
padding: 2px 8px;
|
|
border-radius: 10px;
|
|
white-space: nowrap;
|
|
}
|
|
.badge-order { background: var(--badge-order); color: #fff; }
|
|
.badge-added { background: var(--badge-added); color: #fff; }
|
|
.badge-additional { background: var(--badge-additional); color: #fff; }
|
|
.badge-omitted { background: var(--badge-omitted); color: #fff; }
|
|
.badge-returned { background: var(--badge-returned); color: #fff; }
|
|
.badge-draft { background: var(--warning); color: #fff; }
|
|
.badge-validated { background: var(--success); color: #fff; }
|
|
.badge-invoiced { background: var(--info); color: #fff; }
|
|
.badge-canceled { background: var(--danger); color: #fff; }
|
|
|
|
/* Status-Badges */
|
|
.status-badge { font-size: 11px; padding: 3px 8px; border-radius: 10px; }
|
|
.status-open { background: var(--danger); color: #fff; }
|
|
.status-partial { background: var(--warning); color: #fff; }
|
|
.status-done { background: var(--success); color: #fff; }
|
|
|
|
/* === Produkt-Cards === */
|
|
.product-card {
|
|
background: var(--colorbackcard);
|
|
border-radius: 10px;
|
|
padding: 12px 14px;
|
|
margin-bottom: 6px;
|
|
}
|
|
.product-card-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
gap: 8px;
|
|
}
|
|
.product-card-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
flex-shrink: 0;
|
|
}
|
|
.product-name {
|
|
font-weight: 600;
|
|
font-size: 14px;
|
|
flex: 1;
|
|
min-width: 0;
|
|
word-break: break-word;
|
|
}
|
|
.product-ref {
|
|
font-size: 12px;
|
|
color: var(--colortextmuted);
|
|
margin-top: 2px;
|
|
}
|
|
.product-desc {
|
|
font-size: 13px;
|
|
color: var(--colortextmuted);
|
|
margin-top: 4px;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
}
|
|
.product-qty-row {
|
|
display: flex;
|
|
align-items: center;
|
|
margin-top: 10px;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
}
|
|
.qty-label {
|
|
font-size: 12px;
|
|
color: var(--colortextmuted);
|
|
}
|
|
.qty-value {
|
|
font-weight: 600;
|
|
font-size: 14px;
|
|
}
|
|
.qty-controls {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
margin-left: auto;
|
|
}
|
|
.qty-btn {
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: 50%;
|
|
border: 1px solid var(--colorborder);
|
|
background: var(--colorbacktitle);
|
|
color: var(--colortext);
|
|
font-size: 18px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
}
|
|
.qty-btn:active {
|
|
background: var(--colorbackline);
|
|
transform: scale(0.92);
|
|
}
|
|
.qty-display {
|
|
min-width: 40px;
|
|
text-align: center;
|
|
font-weight: 600;
|
|
font-size: 16px;
|
|
}
|
|
|
|
/* === Accordion-Sections === */
|
|
.accordion-section {
|
|
margin-bottom: 6px;
|
|
}
|
|
.accordion-header {
|
|
background: var(--colorbackcard);
|
|
border-radius: 10px;
|
|
padding: 12px 14px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
cursor: pointer;
|
|
}
|
|
.accordion-header:active {
|
|
background: var(--colorbackline);
|
|
}
|
|
.accordion-header .section-title {
|
|
font-weight: 600;
|
|
font-size: 14px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
.accordion-header .chevron {
|
|
transition: transform 0.2s;
|
|
color: var(--colortextmuted);
|
|
}
|
|
.accordion-header.open .chevron {
|
|
transform: rotate(180deg);
|
|
}
|
|
.accordion-body {
|
|
display: none;
|
|
padding-top: 4px;
|
|
}
|
|
.accordion-body.open {
|
|
display: block;
|
|
}
|
|
.section-count {
|
|
font-size: 12px;
|
|
padding: 2px 7px;
|
|
border-radius: 10px;
|
|
background: var(--colorbacktitle);
|
|
color: var(--colortextmuted);
|
|
}
|
|
|
|
/* === Leistungen-Cards === */
|
|
.leistung-card {
|
|
background: var(--colorbackcard);
|
|
border-radius: 10px;
|
|
padding: 12px 14px;
|
|
margin-bottom: 6px;
|
|
}
|
|
.leistung-time {
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
}
|
|
.leistung-duration {
|
|
font-size: 13px;
|
|
color: var(--colortextmuted);
|
|
margin-left: 8px;
|
|
}
|
|
.leistung-service {
|
|
font-size: 13px;
|
|
color: var(--primary, #4390dc);
|
|
margin-top: 4px;
|
|
}
|
|
.leistung-desc {
|
|
font-size: 13px;
|
|
color: var(--colortextmuted);
|
|
margin-top: 4px;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
}
|
|
.leistung-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
margin-top: 8px;
|
|
justify-content: flex-end;
|
|
}
|
|
.leistung-total {
|
|
background: var(--colorbackcard);
|
|
border-radius: 10px;
|
|
padding: 12px 14px;
|
|
margin-bottom: 8px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
.leistung-total-label {
|
|
font-size: 14px;
|
|
color: var(--colortextmuted);
|
|
}
|
|
.leistung-total-value {
|
|
font-size: 18px;
|
|
font-weight: 700;
|
|
color: var(--success);
|
|
}
|
|
|
|
/* === Merkzettel === */
|
|
.note-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 10px 14px;
|
|
background: var(--colorbackcard);
|
|
border-radius: 10px;
|
|
margin-bottom: 4px;
|
|
}
|
|
.note-checkbox {
|
|
width: 24px;
|
|
height: 24px;
|
|
flex-shrink: 0;
|
|
cursor: pointer;
|
|
color: var(--colortextmuted);
|
|
font-size: 20px;
|
|
}
|
|
.note-checkbox.checked {
|
|
color: var(--success);
|
|
}
|
|
.note-text {
|
|
flex: 1;
|
|
font-size: 14px;
|
|
min-width: 0;
|
|
word-break: break-word;
|
|
}
|
|
.note-text.checked {
|
|
text-decoration: line-through;
|
|
color: var(--colortextmuted);
|
|
}
|
|
.note-delete {
|
|
color: var(--colortextmuted);
|
|
cursor: pointer;
|
|
font-size: 16px;
|
|
padding: 4px;
|
|
}
|
|
.note-add {
|
|
display: flex;
|
|
gap: 8px;
|
|
margin-top: 4px;
|
|
}
|
|
.note-add input {
|
|
flex: 1;
|
|
padding: 10px 14px;
|
|
background: var(--colorbackinput);
|
|
border: 1px solid var(--colorborder);
|
|
border-radius: 8px;
|
|
color: var(--colortext);
|
|
font-size: 14px;
|
|
min-height: 44px;
|
|
outline: none;
|
|
}
|
|
|
|
/* === Tracking-Cards === */
|
|
.tracking-card {
|
|
background: var(--colorbackcard);
|
|
border-radius: 10px;
|
|
padding: 12px 14px;
|
|
margin-bottom: 6px;
|
|
}
|
|
.tracking-card-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
.tracking-qty {
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
color: var(--colortext);
|
|
flex-shrink: 0;
|
|
}
|
|
.tracking-total {
|
|
text-align: center;
|
|
padding: 10px 14px;
|
|
margin-top: 4px;
|
|
font-size: 13px;
|
|
color: var(--colortextmuted);
|
|
background: var(--colorbackcard);
|
|
border-radius: 10px;
|
|
}
|
|
.text-warning { color: var(--warning); }
|
|
.text-success { color: var(--success); }
|
|
|
|
/* Leistungen Mini-Cards (Lieferauflistung Detail) */
|
|
.leistung-card-mini {
|
|
background: var(--colorbackcard);
|
|
border-radius: 8px;
|
|
padding: 8px 12px;
|
|
margin-bottom: 4px;
|
|
}
|
|
.leistung-mini-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-size: 13px;
|
|
}
|
|
.leistung-mini-time {
|
|
font-size: 12px;
|
|
color: var(--colortextmuted);
|
|
margin-top: 2px;
|
|
}
|
|
.leistung-mini-desc {
|
|
font-size: 12px;
|
|
color: var(--colortextmuted);
|
|
margin-top: 2px;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
.badge-muted {
|
|
background: var(--colorbacktitle);
|
|
color: var(--colortextmuted);
|
|
font-size: 11px;
|
|
padding: 2px 6px;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
/* Filter-Bar */
|
|
.filter-bar {
|
|
display: flex;
|
|
gap: 6px;
|
|
margin: 8px 0;
|
|
padding: 0 2px;
|
|
}
|
|
.filter-btn {
|
|
flex: 1;
|
|
padding: 7px 0;
|
|
border: 1px solid var(--colorborder);
|
|
border-radius: 8px;
|
|
background: var(--colorbackcard);
|
|
color: var(--colortextmuted);
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
text-align: center;
|
|
cursor: pointer;
|
|
transition: all 0.15s;
|
|
}
|
|
.filter-btn.active {
|
|
background: var(--primary, #4390dc);
|
|
color: #fff;
|
|
border-color: var(--primary, #4390dc);
|
|
}
|
|
.filter-btn:active {
|
|
opacity: 0.8;
|
|
}
|
|
|
|
/* Produktliste Zahlenzeile */
|
|
.order-line-numbers {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 4px 12px;
|
|
font-size: 12px;
|
|
color: var(--colortextmuted);
|
|
margin-top: 6px;
|
|
padding-top: 6px;
|
|
border-top: 1px solid var(--colorborder);
|
|
}
|
|
/* Kleine Info-Badges fuer Mehraufwand/Entfaellt/Ruecknahme */
|
|
.badge-info-small {
|
|
background: #28a745;
|
|
color: #fff;
|
|
font-size: 0.75em;
|
|
padding: 1px 4px;
|
|
border-radius: 3px;
|
|
}
|
|
.badge-danger-small {
|
|
background: #dc3545;
|
|
color: #fff;
|
|
font-size: 0.75em;
|
|
padding: 1px 4px;
|
|
border-radius: 3px;
|
|
}
|
|
.badge-open {
|
|
background: var(--colortextmuted);
|
|
color: #fff;
|
|
font-size: 11px;
|
|
padding: 2px 8px;
|
|
border-radius: 4px;
|
|
}
|
|
.badge-success {
|
|
background: var(--success);
|
|
color: #fff;
|
|
font-size: 11px;
|
|
padding: 2px 8px;
|
|
border-radius: 4px;
|
|
}
|
|
.badge-warning {
|
|
background: var(--warning);
|
|
color: #fff;
|
|
font-size: 11px;
|
|
padding: 2px 8px;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
/* === STZ-Liste Cards === */
|
|
.stz-card {
|
|
background: var(--colorbackcard);
|
|
border-radius: 10px;
|
|
padding: 12px 14px;
|
|
margin-bottom: 6px;
|
|
cursor: pointer;
|
|
border: 2px solid transparent;
|
|
transition: border-color 0.2s;
|
|
}
|
|
.stz-card:active {
|
|
background: var(--colorbackline);
|
|
}
|
|
.stz-card.active-stz {
|
|
border-color: var(--primary, #4390dc);
|
|
}
|
|
.stz-card-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
.stz-ref {
|
|
font-weight: 600;
|
|
font-size: 15px;
|
|
}
|
|
.stz-date {
|
|
font-size: 13px;
|
|
color: var(--colortextmuted);
|
|
margin-top: 2px;
|
|
}
|
|
.stz-info {
|
|
font-size: 12px;
|
|
color: var(--colortextmuted);
|
|
margin-top: 4px;
|
|
}
|
|
|
|
/* === Auftrags-Produktliste (Uebernahme) === */
|
|
.order-line-card {
|
|
background: var(--colorbackcard);
|
|
border-radius: 10px;
|
|
padding: 12px 14px;
|
|
margin-bottom: 6px;
|
|
}
|
|
.order-line-card.on-stz {
|
|
opacity: 0.5;
|
|
}
|
|
.order-line-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
.order-line-check {
|
|
width: 22px;
|
|
height: 22px;
|
|
flex-shrink: 0;
|
|
accent-color: var(--primary, #4390dc);
|
|
}
|
|
.order-line-check-done {
|
|
width: 22px;
|
|
height: 22px;
|
|
flex-shrink: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--success);
|
|
font-size: 16px;
|
|
font-weight: bold;
|
|
}
|
|
.order-line-info {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
.order-line-status {
|
|
font-size: 11px;
|
|
color: var(--success);
|
|
margin-top: 4px;
|
|
padding-left: 32px;
|
|
}
|
|
.transfer-actions {
|
|
margin-top: 12px;
|
|
padding: 0 4px;
|
|
}
|
|
.order-line-select-all {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-size: 14px;
|
|
color: var(--colortext);
|
|
cursor: pointer;
|
|
}
|
|
.order-line-select-all input {
|
|
width: 20px;
|
|
height: 20px;
|
|
accent-color: var(--primary, #4390dc);
|
|
}
|
|
|
|
/* === FAB (Floating Action Button) === */
|
|
.fab {
|
|
position: fixed;
|
|
bottom: 24px;
|
|
right: 20px;
|
|
width: 56px;
|
|
height: 56px;
|
|
border-radius: 50%;
|
|
background: var(--primary, #4390dc);
|
|
color: #fff;
|
|
border: none;
|
|
font-size: 24px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
|
|
cursor: pointer;
|
|
z-index: 50;
|
|
transition: transform 0.2s;
|
|
}
|
|
.fab:active {
|
|
transform: scale(0.9);
|
|
}
|
|
|
|
/* === Bottom-Sheet (Dialog) === */
|
|
.bottom-sheet-overlay {
|
|
display: none;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: rgba(0, 0, 0, 0.6);
|
|
z-index: 100;
|
|
}
|
|
.bottom-sheet-overlay.open {
|
|
display: block;
|
|
}
|
|
.bottom-sheet {
|
|
position: fixed;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
max-height: 85vh;
|
|
background: var(--colorbackcard);
|
|
border-radius: 16px 16px 0 0;
|
|
z-index: 101;
|
|
transform: translateY(100%);
|
|
transition: transform 300ms ease-out;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
}
|
|
.bottom-sheet.open {
|
|
transform: translateY(0);
|
|
}
|
|
.bottom-sheet-handle {
|
|
width: 36px;
|
|
height: 4px;
|
|
background: var(--colorborder);
|
|
border-radius: 2px;
|
|
margin: 10px auto 0;
|
|
flex-shrink: 0;
|
|
}
|
|
.bottom-sheet-header {
|
|
padding: 12px 16px 8px;
|
|
font-weight: 600;
|
|
font-size: 16px;
|
|
flex-shrink: 0;
|
|
}
|
|
.bottom-sheet-body {
|
|
padding: 8px 16px 16px;
|
|
overflow-y: auto;
|
|
flex: 1;
|
|
}
|
|
.bottom-sheet-footer {
|
|
padding: 12px 16px;
|
|
border-top: 1px solid var(--colorborder);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* === Toast === */
|
|
.toast-container {
|
|
position: fixed;
|
|
top: 16px;
|
|
left: 16px;
|
|
right: 16px;
|
|
z-index: 200;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
pointer-events: none;
|
|
}
|
|
.toast {
|
|
padding: 12px 16px;
|
|
border-radius: 10px;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
pointer-events: auto;
|
|
animation: toastIn 0.3s ease-out;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
|
|
}
|
|
.toast-success { background: var(--success); color: #fff; }
|
|
.toast-error { background: var(--danger); color: #fff; }
|
|
.toast-info { background: var(--info); color: #fff; }
|
|
|
|
@keyframes toastIn {
|
|
from { transform: translateY(-20px); opacity: 0; }
|
|
to { transform: translateY(0); opacity: 1; }
|
|
}
|
|
@keyframes toastOut {
|
|
from { transform: translateY(0); opacity: 1; }
|
|
to { transform: translateY(-20px); opacity: 0; }
|
|
}
|
|
|
|
/* === Loading-Overlay === */
|
|
.loading-overlay {
|
|
display: none;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: rgba(0, 0, 0, 0.5);
|
|
z-index: 150;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
.loading-overlay.active {
|
|
display: flex;
|
|
}
|
|
.loading-spinner {
|
|
width: 40px;
|
|
height: 40px;
|
|
border: 3px solid var(--colorborder);
|
|
border-top-color: var(--primary, #4390dc);
|
|
border-radius: 50%;
|
|
animation: spin 0.8s linear infinite;
|
|
}
|
|
@keyframes spin {
|
|
to { transform: rotate(360deg); }
|
|
}
|
|
|
|
/* === Utility === */
|
|
.text-muted { color: var(--colortextmuted); }
|
|
.text-success { color: var(--success); }
|
|
.text-danger { color: var(--danger); }
|
|
.text-warning { color: var(--warning); }
|
|
.text-center { text-align: center; }
|
|
.mt-8 { margin-top: 8px; }
|
|
.mt-12 { margin-top: 12px; }
|
|
.mb-8 { margin-bottom: 8px; }
|
|
.gap-8 { gap: 8px; }
|
|
.flex { display: flex; }
|
|
.flex-col { flex-direction: column; }
|
|
.items-center { align-items: center; }
|
|
.justify-between { justify-content: space-between; }
|
|
.w-full { width: 100%; }
|
|
.hidden { display: none !important; }
|
|
|
|
/* === Section-Header === */
|
|
.section-header {
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: var(--colortextmuted);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
padding: 12px 4px 6px;
|
|
}
|
|
.section-header.section-mehraufwand {
|
|
border-left: 3px solid var(--warning);
|
|
padding-left: 8px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
.mehraufwand-card {
|
|
border-left: 3px solid var(--warning);
|
|
}
|
|
|
|
/* === Confirm-Dialog === */
|
|
.confirm-dialog {
|
|
position: fixed;
|
|
top: 0; left: 0; right: 0; bottom: 0;
|
|
background: rgba(0, 0, 0, 0.6);
|
|
z-index: 160;
|
|
display: none;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 20px;
|
|
}
|
|
.confirm-dialog.active {
|
|
display: flex;
|
|
}
|
|
.confirm-box {
|
|
background: var(--colorbackcard);
|
|
border-radius: 14px;
|
|
padding: 20px;
|
|
max-width: 320px;
|
|
width: 100%;
|
|
}
|
|
.confirm-title {
|
|
font-weight: 600;
|
|
font-size: 16px;
|
|
margin-bottom: 8px;
|
|
}
|
|
.confirm-text {
|
|
font-size: 14px;
|
|
color: var(--colortextmuted);
|
|
margin-bottom: 20px;
|
|
}
|
|
.confirm-actions {
|
|
display: flex;
|
|
gap: 10px;
|
|
}
|
|
.confirm-actions .btn {
|
|
flex: 1;
|
|
}
|
|
|
|
/* === Leer-Zustand === */
|
|
.empty-state {
|
|
text-align: center;
|
|
padding: 40px 20px;
|
|
color: var(--colortextmuted);
|
|
}
|
|
.empty-state-icon {
|
|
font-size: 48px;
|
|
margin-bottom: 12px;
|
|
opacity: 0.4;
|
|
}
|
|
.empty-state-text {
|
|
font-size: 14px;
|
|
}
|
|
|
|
/* Freigabe-Hinweis */
|
|
.released-hint {
|
|
text-align: center;
|
|
padding: 20px 16px;
|
|
margin: 8px 0;
|
|
background: var(--colorbackcard);
|
|
border-radius: 10px;
|
|
border-left: 3px solid var(--warning);
|
|
}
|
|
.released-hint-icon {
|
|
font-size: 32px;
|
|
margin-bottom: 8px;
|
|
}
|
|
.released-hint-text {
|
|
font-size: 14px;
|
|
color: var(--warning);
|
|
font-weight: 500;
|
|
}
|
|
.released-hint-small {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 8px;
|
|
text-align: left;
|
|
padding: 12px 14px;
|
|
}
|
|
.released-hint-small .released-hint-icon {
|
|
font-size: 20px;
|
|
margin-bottom: 0;
|
|
}
|
|
.released-hint-small .released-hint-text {
|
|
flex: 1;
|
|
font-size: 13px;
|
|
}
|
|
.released-hint-small .btn {
|
|
width: 100%;
|
|
}
|
|
|
|
/* Safe-Area fuer Geraete mit Notch */
|
|
@supports (padding-bottom: env(safe-area-inset-bottom)) {
|
|
.fab {
|
|
bottom: calc(24px + env(safe-area-inset-bottom));
|
|
}
|
|
.bottom-sheet-footer {
|
|
padding-bottom: calc(12px + env(safe-area-inset-bottom));
|
|
}
|
|
}
|