Fügt eine optisch abgesetzte Summenzeile unter der Dashboard-Tabelle hinzu, die die Beträge der aktuell sichtbaren (per Spaltenfilter gefilterten) Einträge summiert und live aktualisiert. Schließt #6 Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
603 lines
12 KiB
CSS
603 lines
12 KiB
CSS
/* Basis-Stile */
|
|
:root {
|
|
--primary-color: #4361ee;
|
|
--primary-hover: #687eef;
|
|
--secondary-color: #3f37c9;
|
|
--accent-color: #4895ef;
|
|
--light-color: #f8f9fa;
|
|
--dark-color: #212529;
|
|
--success-color: #4cc9f0;
|
|
--border-radius: 10px;
|
|
--box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
|
--transition: all 0.3s ease;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
|
|
margin: 0;
|
|
padding: 0;
|
|
background-color: #f5f7fa;
|
|
color: var(--dark-color);
|
|
line-height: 1.6;
|
|
display: block;
|
|
height: 100vh;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 22px;
|
|
font-weight: 600;
|
|
margin-bottom: 20px;
|
|
color: var(--dark-color);
|
|
}
|
|
|
|
.kurs-cell {
|
|
font-size: 0.85em;
|
|
line-height: 1.2em;
|
|
}
|
|
|
|
.kurs-datum {
|
|
font-size: 0.75em;
|
|
color: #666;
|
|
}
|
|
|
|
.guv-positive {
|
|
color: #1a7f37;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.guv-negative {
|
|
color: #c62828;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.sum-row {
|
|
background-color: #f3f3f3;
|
|
border-top: 2px solid #999;
|
|
}
|
|
|
|
.sum-row td {
|
|
padding-top: 10px;
|
|
}
|
|
|
|
.debug_hidden {
|
|
display: none;
|
|
}
|
|
/* Container */
|
|
.container {
|
|
max-width: 1600px;
|
|
margin: 0 auto;
|
|
padding: 20px;
|
|
}
|
|
|
|
/* Formular-Stile */
|
|
.form-container {
|
|
background: white;
|
|
padding: 25px;
|
|
border-radius: var(--border-radius);
|
|
box-shadow: var(--box-shadow);
|
|
margin: 20px 0;
|
|
max-width: 600px;
|
|
}
|
|
|
|
.form-group {
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.form-group input,select {
|
|
width: 95%;
|
|
padding: 8px 15px;
|
|
border: 1px solid #ddd;
|
|
border-radius: var(--border-radius);
|
|
font-size: 22px;
|
|
transition: border-color 0.3s ease;
|
|
}
|
|
|
|
.form-group input:focus,select:focus {
|
|
border-color: var(--primary-color);
|
|
outline: none;
|
|
}
|
|
|
|
#categories_rep_person {
|
|
font-size: 12px;
|
|
}
|
|
|
|
.btn-submit {
|
|
display: inline-block;
|
|
background: var(--primary-color);
|
|
color: white;
|
|
padding: 8px 20px;
|
|
text-align: center;
|
|
text-decoration: none;
|
|
border: none;
|
|
border-radius: var(--border-radius);
|
|
font-weight: 600;
|
|
font-size: 22px;
|
|
box-shadow: var(--box-shadow);
|
|
transition: var(--transition);
|
|
cursor: pointer;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.btn-submit:hover {
|
|
background: var(--primary-hover);
|
|
}
|
|
|
|
/* Navigation */
|
|
.nav {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-start;
|
|
padding: 10px 20px;
|
|
background: var(--primary-color);
|
|
border-radius: var(--border-radius);
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.nav-list {
|
|
display: flex;
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
|
|
.hamburger {
|
|
display: none;
|
|
background: rgba(255, 255, 255, 0.2);
|
|
border: none;
|
|
color: white;
|
|
font-size: 1.5rem;
|
|
padding: 8px 15px;
|
|
border-radius: var(--border-radius);
|
|
cursor: pointer;
|
|
transition: var(--transition);
|
|
margin-right: 10px;
|
|
z-index: 101;
|
|
}
|
|
|
|
.hamburger:hover {
|
|
background: rgba(255, 255, 255, 0.3);
|
|
}
|
|
|
|
|
|
.nav-list li {
|
|
margin: 0 5px;
|
|
}
|
|
|
|
.nav-list li a {
|
|
display: block;
|
|
padding: 10px 15px;
|
|
color: white;
|
|
text-decoration: none;
|
|
font-weight: 500;
|
|
border-radius: 8px;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.nav-list li a:hover {
|
|
background: rgba(255, 255, 255, 0.25);
|
|
}
|
|
|
|
/* Allgemeine Navigation-Button-Stile */
|
|
.nav-button {
|
|
color: white;
|
|
text-decoration: none;
|
|
font-size: 1rem;
|
|
font-weight: 500;
|
|
padding: 8px 12px;
|
|
border-radius: var(--border-radius);
|
|
background: rgba(255, 255, 255, 0.2);
|
|
transition: var(--transition);
|
|
margin-right: 10px; /* Abstand zum nächsten Button */
|
|
}
|
|
|
|
/* Hover-Effekte für die Navigation-Buttons */
|
|
.nav-button:hover {
|
|
background: rgba(255, 255, 255, 0.3);
|
|
}
|
|
|
|
/* Logout Button */
|
|
.logout {
|
|
color: white;
|
|
text-decoration: none;
|
|
font-size: 0.9rem;
|
|
font-weight: 500;
|
|
padding: 8px 12px;
|
|
border-radius: var(--border-radius);
|
|
background: rgba(255, 255, 255, 0.2);
|
|
transition: var(--transition);
|
|
margin-left: 10px; /* Abstand von den anderen Buttons */
|
|
}
|
|
|
|
/* Hover-Effekte für Logout Button */
|
|
.logout:hover {
|
|
background: rgba(255, 255, 255, 0.3);
|
|
}
|
|
|
|
/* Responsive Navigation für schmale Bildschirme */
|
|
@media (max-width: 768px) {
|
|
.hamburger {
|
|
display: block;
|
|
}
|
|
.nav-list {
|
|
display: none;
|
|
position: fixed;
|
|
top: 95px;
|
|
left: 20px;
|
|
max-width: 250px;
|
|
height: auto;
|
|
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
|
|
border-radius: 12px;
|
|
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
|
|
flex-direction: column;
|
|
padding: 10px 10px 0px 0px;
|
|
margin: 0;
|
|
z-index: 100;
|
|
transform: translateX(-100%);
|
|
transition: transform 0.3s ease-in-out, box-shadow 0.3s ease;
|
|
overflow: hidden;
|
|
}
|
|
.nav-list.show {
|
|
display: flex;
|
|
transform: translateX(0);
|
|
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
|
|
}
|
|
.nav-list li {
|
|
width: 100%;
|
|
margin: 2px 0;
|
|
}
|
|
.nav-list li a {
|
|
padding: 12px 20px;
|
|
margin: 0 8px;
|
|
}
|
|
.nav-list li a:hover {
|
|
transform: translateX(5px);
|
|
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
|
|
}
|
|
.logout {
|
|
margin-left: 0;
|
|
padding: 8px 12px;
|
|
font-size: 0.9rem;
|
|
}
|
|
}
|
|
|
|
/* Tabelle */
|
|
table {
|
|
width: 100%;
|
|
border-collapse: separate;
|
|
border-spacing: 0;
|
|
margin: 20px 0;
|
|
background: white;
|
|
border-radius: var(--border-radius);
|
|
overflow: hidden;
|
|
box-shadow: var(--box-shadow);
|
|
}
|
|
|
|
table.thin {
|
|
width: 250px;
|
|
display: inline-table; /* schrumpft auf Inhalt */
|
|
margin: 0 auto; /* horizontal zentrieren */
|
|
}
|
|
|
|
th, td {
|
|
padding: 12px 15px;
|
|
text-align: left;
|
|
border-bottom: 1px solid #eee;
|
|
}
|
|
|
|
td.align-right {
|
|
text-align: right;
|
|
}
|
|
|
|
img.pencil {
|
|
margin-top: 10px;
|
|
}
|
|
|
|
th {
|
|
background: var(--primary-color);
|
|
color: white;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
font-size: 0.85em;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
tr:last-child td {
|
|
border-bottom: none;
|
|
}
|
|
|
|
tr:hover {
|
|
background: #f8f9fa;
|
|
transition: var(--transition);
|
|
}
|
|
|
|
/* Ausblenden der markierten Spalten auf kleinen Bildschirmen */
|
|
@media (max-width: 768px) {
|
|
.hide-on-mobile {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.update {
|
|
color: white;
|
|
width: 25px;
|
|
height: 25px;
|
|
vertical-align: middle;
|
|
display: inline-block;
|
|
}
|
|
|
|
/* Spaltenfilter im Tabellenkopf */
|
|
tr.filter-row th {
|
|
background: white;
|
|
padding: 6px 8px;
|
|
text-transform: none;
|
|
letter-spacing: normal;
|
|
font-weight: normal;
|
|
}
|
|
|
|
.column-filter {
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
padding: 6px 8px;
|
|
border: 1px solid #ddd;
|
|
border-radius: 6px;
|
|
font-size: 0.85em;
|
|
color: #333;
|
|
background: white;
|
|
}
|
|
|
|
.column-filter:focus {
|
|
outline: none;
|
|
border-color: var(--primary-color);
|
|
}
|
|
|
|
/* Summenzeile unterhalb gefilterter Listen */
|
|
tr.sum-row td {
|
|
background: #eef3f8;
|
|
font-weight: 700;
|
|
border-top: 2px solid var(--primary-color);
|
|
border-bottom: none;
|
|
}
|
|
|
|
|
|
/* Button */
|
|
.btn-xr {
|
|
position: fixed;
|
|
bottom: 30px;
|
|
right: 30px;
|
|
background: var(--primary-color);
|
|
color: white;
|
|
padding: 12px 20px;
|
|
text-align: center;
|
|
text-decoration: none;
|
|
border: none;
|
|
border-radius: var(--border-radius);
|
|
font-weight: 600;
|
|
box-shadow: var(--box-shadow);
|
|
transition: var(--transition);
|
|
cursor: pointer;
|
|
z-index: 1000;
|
|
}
|
|
|
|
.btn-xr:hover {
|
|
background: var(--primary-hover);
|
|
}
|
|
|
|
.btn-xr1l {
|
|
position: fixed;
|
|
bottom: 30px;
|
|
right: 150px;
|
|
background: var(--primary-color);
|
|
color: white;
|
|
padding: 12px 20px;
|
|
text-align: center;
|
|
text-decoration: none;
|
|
border: none;
|
|
border-radius: var(--border-radius);
|
|
font-weight: 600;
|
|
box-shadow: var(--box-shadow);
|
|
transition: var(--transition);
|
|
cursor: pointer;
|
|
z-index: 1000;
|
|
}
|
|
|
|
.btn-xr1l:hover {
|
|
background: var(--primary-hover);
|
|
}
|
|
|
|
/* Anpassung für mobile Geräte */
|
|
@media (max-width: 768px) {
|
|
.btn-submit {
|
|
bottom: 10px;
|
|
right: 10px;
|
|
padding: 10px 16px; /* Etwas kleiner, falls nötig */
|
|
}
|
|
}
|
|
|
|
/* Cookie-Hinweis */
|
|
.cookie-notice, .data-notice {
|
|
position: fixed;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
background: var(--light-color);
|
|
color: var(--dark-color);
|
|
padding: 15px;
|
|
text-align: center;
|
|
z-index: 1000;
|
|
box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
|
|
border-top: 1px solid #eee;
|
|
transition: opacity 0.5s ease, max-height 0.5s ease;
|
|
opacity: 1;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.data-notice {
|
|
background-color: lightgreen;
|
|
}
|
|
|
|
.data-notice.error {
|
|
background-color: LightCoral;
|
|
}
|
|
|
|
#cookie-notice.hidden {
|
|
opacity: 0;
|
|
max-height: 0;
|
|
}
|
|
|
|
#data-notice.hidden {
|
|
opacity: 0;
|
|
max-height: 0;
|
|
}
|
|
|
|
/* Modal */
|
|
.modal-l {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: rgba(0, 0, 0, 0.5);
|
|
z-index: 1001;
|
|
}
|
|
|
|
.modal-l-content {
|
|
background: white;
|
|
padding: 40px;
|
|
border-radius: var(--border-radius);
|
|
width: 90%;
|
|
max-width: 450px;
|
|
box-shadow: var(--box-shadow);
|
|
transform: scale(1.05);
|
|
transition: var(--transition);
|
|
text-align: center;
|
|
}
|
|
|
|
.modal-l-content h2 {
|
|
font-size: 24px;
|
|
margin-bottom: 20px;
|
|
color: var(--primary-color);
|
|
}
|
|
|
|
.modal-l-content input[type="text"],
|
|
.modal-l-content input[type="password"] {
|
|
width: 100%;
|
|
padding: 15px;
|
|
margin: 10px 0;
|
|
border: 1px solid #ddd;
|
|
border-radius: var(--border-radius);
|
|
box-sizing: border-box;
|
|
font-size: 16px;
|
|
transition: border-color 0.3s ease;
|
|
}
|
|
|
|
.modal-l-content input[type="text"]:focus,
|
|
.modal-l-content input[type="password"]:focus {
|
|
border-color: var(--primary-color);
|
|
outline: none;
|
|
}
|
|
|
|
.modal-l-content button {
|
|
width: 100%;
|
|
padding: 15px;
|
|
background-color: var(--primary-color);
|
|
color: white;
|
|
border: none;
|
|
border-radius: var(--border-radius);
|
|
font-size: 16px;
|
|
cursor: pointer;
|
|
transition: background-color 0.3s ease, transform 0.3s ease;
|
|
}
|
|
|
|
.modal-content button:hover {
|
|
background-color: var(--primary-hover);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.modal-content button:active {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
/* Verstecken der Spinner-Knöpfe in verschiedenen Browsern */
|
|
input[type="number"]::-webkit-outer-spin-button,
|
|
input[type="number"]::-webkit-inner-spin-button {
|
|
-webkit-appearance: none;
|
|
margin: 0;
|
|
}
|
|
|
|
input[type="number"] {
|
|
-moz-appearance: textfield;
|
|
}
|
|
|
|
/* Responsive Design */
|
|
@media (max-width: 768px) {
|
|
.modal-content {
|
|
width: 80%;
|
|
padding: 25px;
|
|
}
|
|
.modal-content h2 {
|
|
font-size: 20px;
|
|
}
|
|
.modal-content input[type="text"],
|
|
.modal-content input[type="password"],
|
|
.modal-content button {
|
|
font-size: 14px;
|
|
width: 100px;
|
|
}
|
|
}
|
|
|
|
/* Modales Fenster 2 */
|
|
|
|
.modal {
|
|
display: none;
|
|
position: fixed;
|
|
z-index: 9999;
|
|
inset: 0;
|
|
background: rgba(0,0,0,0.5);
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.modal-content {
|
|
background: #fff;
|
|
width: 80%;
|
|
height: 80%;
|
|
max-width: 1000px;
|
|
max-height: 800px;
|
|
border-radius: 8px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 20px;
|
|
}
|
|
|
|
.modal-body {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
background: #f8f8f8;
|
|
padding: 10px;
|
|
font-family: monospace;
|
|
font-size: 14px;
|
|
border: 1px solid #ddd;
|
|
}
|
|
|
|
.modal-footer {
|
|
text-align: right;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.btn {
|
|
padding: 8px 16px;
|
|
background: #333;
|
|
color: white;
|
|
border: none;
|
|
cursor: pointer;
|
|
border-radius: 4px;
|
|
width: 100px;
|
|
}
|
|
|
|
.btn:hover {
|
|
background: #555;
|
|
}
|