Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1b4c99c08d |
@@ -1,4 +1,4 @@
|
||||
const APP_VERSION = 'v0.41.1';
|
||||
const APP_VERSION = 'v0.42.0';
|
||||
|
||||
const fileInput = document.getElementById('csvFile');
|
||||
const dropZone = document.getElementById('dropZone');
|
||||
|
||||
+86
-54
@@ -7,86 +7,119 @@
|
||||
<link rel="stylesheet" href="style.css">
|
||||
</head>
|
||||
<body>
|
||||
<header class="topbar">
|
||||
<div class="brand">
|
||||
<span class="brand-icon" aria-hidden="true">⌚</span>
|
||||
<div>
|
||||
<strong>qPlanner</strong>
|
||||
<span>Arbeitszeit-Auswertung</span>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<main class="app">
|
||||
<section class="hero">
|
||||
<div>
|
||||
<div class="hero-content">
|
||||
<p class="eyebrow">qPlanner CSV-Auswertung</p>
|
||||
<h1>Arbeitszeit-Saldo berechnen</h1>
|
||||
<p class="intro">CSV-Datei hochladen, Netto-Arbeitszeiten auslesen und Plus-/Minusstunden berechnen. Samstage, Sonntage und gesetzliche Feiertage im gewählten Bundesland werden mit 0:00 Stunden Sollzeit bewertet.</p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="settings" aria-label="Einstellungen">
|
||||
<label>
|
||||
Sollzeit pro Arbeitstag Montag bis Freitag
|
||||
<input id="targetTime" type="time" value="08:00" step="60">
|
||||
</label>
|
||||
<label>
|
||||
Bundesland / Feiertagsregel
|
||||
<select id="federalState">
|
||||
<option value="NW">Nordrhein-Westfalen</option>
|
||||
<option value="BY">Bayern</option>
|
||||
<option value="BY_MARIA">Bayern inkl. Mariä Himmelfahrt</option>
|
||||
<option value="NI">Niedersachsen</option>
|
||||
<option value="HH">Hamburg</option>
|
||||
</select>
|
||||
</label>
|
||||
</section>
|
||||
|
||||
<section id="dropZone" class="drop-zone">
|
||||
<input id="csvFile" type="file" accept=".csv,text/csv">
|
||||
<div class="drop-content">
|
||||
<strong>CSV-Datei hier ablegen</strong>
|
||||
<span>oder Datei auswählen</span>
|
||||
<section class="settings" aria-label="Einstellungen">
|
||||
<label class="setting-card">
|
||||
<span class="setting-icon clock" aria-hidden="true">◷</span>
|
||||
<span class="setting-content">
|
||||
<span class="setting-label">Sollzeit pro Arbeitstag (Mo–Fr)</span>
|
||||
<input id="targetTime" type="time" value="08:00" step="60">
|
||||
</span>
|
||||
</label>
|
||||
<label class="setting-card">
|
||||
<span class="setting-icon location" aria-hidden="true">⌖</span>
|
||||
<span class="setting-content">
|
||||
<span class="setting-label">Bundesland / Feiertagsregel</span>
|
||||
<select id="federalState">
|
||||
<option value="NW">Nordrhein-Westfalen</option>
|
||||
<option value="BY">Bayern</option>
|
||||
<option value="BY_MARIA">Bayern inkl. Mariä Himmelfahrt</option>
|
||||
<option value="NI">Niedersachsen</option>
|
||||
<option value="HH">Hamburg</option>
|
||||
</select>
|
||||
</span>
|
||||
</label>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<section id="dropZone" class="drop-zone" aria-label="CSV-Datei hochladen">
|
||||
<input id="csvFile" type="file" accept=".csv,text/csv">
|
||||
<div class="drop-content">
|
||||
<span class="upload-icon" aria-hidden="true">☁</span>
|
||||
<strong>CSV-Datei hier ablegen</strong>
|
||||
<span>oder klicken zum Auswählen</span>
|
||||
<em>Unterstützt: .csv Dateien</em>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
|
||||
<section id="errorBox" class="error hidden"></section>
|
||||
|
||||
<p id="formatHint" class="format-hint"></p>
|
||||
|
||||
<section id="summary" class="summary hidden" aria-live="polite">
|
||||
<article class="card">
|
||||
<article class="stat-card stat-days">
|
||||
<span class="stat-icon" aria-hidden="true">▣</span>
|
||||
<span>Arbeitstage</span>
|
||||
<strong id="totalDays">0</strong>
|
||||
<small>Tage mit Arbeitszeit</small>
|
||||
</article>
|
||||
<article class="card">
|
||||
<article class="stat-card stat-work">
|
||||
<span class="stat-icon" aria-hidden="true">◷</span>
|
||||
<span>Arbeitszeit gesamt</span>
|
||||
<strong id="totalWork">0:00</strong>
|
||||
<small>Stunden</small>
|
||||
</article>
|
||||
<article class="card">
|
||||
<article class="stat-card stat-target">
|
||||
<span class="stat-icon" aria-hidden="true">◎</span>
|
||||
<span>Sollzeit gesamt</span>
|
||||
<strong id="totalTarget">0:00</strong>
|
||||
<small>Stunden</small>
|
||||
</article>
|
||||
<article class="card saldo-card">
|
||||
<article class="stat-card stat-saldo">
|
||||
<span class="stat-icon" aria-hidden="true">↗</span>
|
||||
<span>Saldo gesamt</span>
|
||||
<strong id="totalSaldo">±0:00</strong>
|
||||
<small>Stunden</small>
|
||||
</article>
|
||||
</section>
|
||||
|
||||
<section id="results" class="results hidden">
|
||||
<div class="table-header">
|
||||
<h2>Monatsübersicht</h2>
|
||||
<button id="exportCsv" type="button">Ergebnis als CSV exportieren</button>
|
||||
</div>
|
||||
<div class="table-wrap">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Monat</th>
|
||||
<th>Arbeitstage</th>
|
||||
<th>Feiertage</th>
|
||||
<th>Arbeitszeit</th>
|
||||
<th>Sollzeit</th>
|
||||
<th>Saldo</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="monthTable"></tbody>
|
||||
</table>
|
||||
<div class="panel table-panel">
|
||||
<div class="table-header">
|
||||
<div class="section-title">
|
||||
<span aria-hidden="true">▮</span>
|
||||
<h2>Monatsübersicht</h2>
|
||||
</div>
|
||||
<button id="exportCsv" type="button">⇩ Ergebnis als CSV exportieren</button>
|
||||
</div>
|
||||
<div class="table-wrap">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Monat</th>
|
||||
<th>Arbeitstage</th>
|
||||
<th>Feiertage</th>
|
||||
<th>Arbeitszeit</th>
|
||||
<th>Sollzeit</th>
|
||||
<th>Saldo</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="monthTable"></tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<details class="details">
|
||||
<summary>Tagesdetails anzeigen</summary>
|
||||
<details class="panel details" open>
|
||||
<summary>
|
||||
<span class="section-title"><span aria-hidden="true">☷</span><strong>Tagesdetails</strong></span>
|
||||
<span class="summary-hint">ein-/ausblenden</span>
|
||||
</summary>
|
||||
<div class="table-wrap">
|
||||
<table>
|
||||
<thead>
|
||||
@@ -110,11 +143,10 @@
|
||||
</section>
|
||||
</main>
|
||||
|
||||
|
||||
<footer class="app-footer" aria-label="Projektinformationen">
|
||||
<span id="appVersion">v0.41.1</span>
|
||||
<footer class="app-footer">
|
||||
<span id="appVersion">v0.42.0</span>
|
||||
<span aria-hidden="true">•</span>
|
||||
<a href="https://git.mike-lindner.net/mike/qplanner-arbeitszeit-auswertung" target="_blank" rel="noopener noreferrer">Repository</a>
|
||||
<a href="https://git.mike-lindner.net/mike/qplanner-arbeitszeit-auswertung" target="_blank" rel="noopener noreferrer">Repository ↗</a>
|
||||
</footer>
|
||||
|
||||
<script src="app.js"></script>
|
||||
|
||||
@@ -1,118 +1,243 @@
|
||||
:root {
|
||||
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
||||
color: #172033;
|
||||
background: #f3f6fb;
|
||||
--bg: #f5f8fd;
|
||||
--surface: rgba(255, 255, 255, .92);
|
||||
--surface-solid: #ffffff;
|
||||
--text: #0f1f3d;
|
||||
--muted: #5c6b84;
|
||||
--line: #dbe5f2;
|
||||
--blue: #2563eb;
|
||||
--blue-soft: #eaf2ff;
|
||||
--green: #119b6b;
|
||||
--green-soft: #e7f8f1;
|
||||
--orange: #f28c18;
|
||||
--orange-soft: #fff3df;
|
||||
--red: #dc2626;
|
||||
--red-soft: #fff1f2;
|
||||
--shadow: 0 18px 48px rgba(29, 52, 92, .10);
|
||||
--shadow-soft: 0 10px 26px rgba(29, 52, 92, .07);
|
||||
font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
||||
color: var(--text);
|
||||
background: var(--bg);
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; }
|
||||
|
||||
html { scroll-behavior: smooth; }
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
min-height: 100vh;
|
||||
background:
|
||||
radial-gradient(circle at top left, rgba(37, 99, 235, .10), transparent 34rem),
|
||||
radial-gradient(circle at 72% 12%, rgba(17, 155, 107, .09), transparent 24rem),
|
||||
linear-gradient(180deg, #fbfdff 0%, var(--bg) 55%, #f8fbff 100%);
|
||||
}
|
||||
|
||||
body::before {
|
||||
content: "";
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
pointer-events: none;
|
||||
background-image:
|
||||
linear-gradient(rgba(37, 99, 235, .035) 1px, transparent 1px),
|
||||
linear-gradient(90deg, rgba(37, 99, 235, .035) 1px, transparent 1px);
|
||||
background-size: 48px 48px;
|
||||
mask-image: linear-gradient(to bottom, black, transparent 72%);
|
||||
}
|
||||
|
||||
.topbar {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 20;
|
||||
backdrop-filter: blur(18px);
|
||||
background: rgba(255, 255, 255, .78);
|
||||
border-bottom: 1px solid rgba(219, 229, 242, .9);
|
||||
}
|
||||
|
||||
.brand {
|
||||
width: min(1360px, calc(100% - 32px));
|
||||
margin: 0 auto;
|
||||
height: 70px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 14px;
|
||||
}
|
||||
|
||||
.brand-icon {
|
||||
width: 38px;
|
||||
height: 38px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
border-radius: 14px;
|
||||
color: var(--blue);
|
||||
background: var(--blue-soft);
|
||||
box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .13);
|
||||
font-size: 1.35rem;
|
||||
}
|
||||
|
||||
.brand strong {
|
||||
display: block;
|
||||
font-size: 1.25rem;
|
||||
letter-spacing: -.03em;
|
||||
}
|
||||
|
||||
.brand span:last-child {
|
||||
display: block;
|
||||
color: var(--muted);
|
||||
font-size: .9rem;
|
||||
margin-top: 1px;
|
||||
}
|
||||
|
||||
.app {
|
||||
width: min(1180px, calc(100% - 32px));
|
||||
position: relative;
|
||||
width: min(1360px, calc(100% - 32px));
|
||||
margin: 0 auto;
|
||||
padding: 40px 0;
|
||||
padding: 44px 0 80px;
|
||||
}
|
||||
|
||||
.hero {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 24px;
|
||||
align-items: end;
|
||||
margin-bottom: 24px;
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr);
|
||||
gap: 32px;
|
||||
align-items: stretch;
|
||||
margin-bottom: 22px;
|
||||
}
|
||||
|
||||
.hero-content {
|
||||
position: relative;
|
||||
min-height: 300px;
|
||||
}
|
||||
|
||||
.eyebrow {
|
||||
margin: 0 0 8px;
|
||||
color: #566277;
|
||||
font-weight: 700;
|
||||
letter-spacing: .08em;
|
||||
margin: 0 0 12px;
|
||||
color: var(--blue);
|
||||
font-weight: 800;
|
||||
letter-spacing: .10em;
|
||||
text-transform: uppercase;
|
||||
font-size: .8rem;
|
||||
font-size: .78rem;
|
||||
}
|
||||
|
||||
h1 {
|
||||
margin: 0;
|
||||
font-size: clamp(2rem, 4vw, 3.2rem);
|
||||
max-width: 760px;
|
||||
font-size: clamp(2.35rem, 5vw, 4.2rem);
|
||||
line-height: .98;
|
||||
letter-spacing: -.06em;
|
||||
}
|
||||
|
||||
.intro {
|
||||
max-width: 760px;
|
||||
color: #566277;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.settings,
|
||||
.card,
|
||||
.results {
|
||||
background: white;
|
||||
border: 1px solid #dde5f2;
|
||||
box-shadow: 0 12px 30px rgba(29, 45, 68, .08);
|
||||
}
|
||||
|
||||
.version-card {
|
||||
border-radius: 18px;
|
||||
padding: 14px 18px;
|
||||
min-width: 130px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.version-card span {
|
||||
display: block;
|
||||
color: #566277;
|
||||
font-size: .82rem;
|
||||
}
|
||||
|
||||
.version-card strong {
|
||||
display: block;
|
||||
margin-top: 4px;
|
||||
font-size: 1.25rem;
|
||||
max-width: 770px;
|
||||
margin: 20px 0 30px;
|
||||
color: var(--muted);
|
||||
line-height: 1.75;
|
||||
font-size: 1.04rem;
|
||||
}
|
||||
|
||||
.settings {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(220px, 1fr));
|
||||
gap: 16px;
|
||||
border-radius: 18px;
|
||||
padding: 16px;
|
||||
margin-bottom: 24px;
|
||||
grid-template-columns: repeat(2, minmax(250px, 1fr));
|
||||
gap: 18px;
|
||||
max-width: 820px;
|
||||
}
|
||||
|
||||
.settings label {
|
||||
.setting-card,
|
||||
.stat-card,
|
||||
.panel,
|
||||
.drop-zone {
|
||||
background: var(--surface);
|
||||
border: 1px solid rgba(219, 229, 242, .95);
|
||||
box-shadow: var(--shadow-soft);
|
||||
backdrop-filter: blur(16px);
|
||||
}
|
||||
|
||||
.setting-card {
|
||||
min-height: 124px;
|
||||
border-radius: 22px;
|
||||
padding: 18px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 18px;
|
||||
}
|
||||
|
||||
.setting-icon,
|
||||
.stat-icon {
|
||||
flex: 0 0 auto;
|
||||
width: 56px;
|
||||
height: 56px;
|
||||
border-radius: 18px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
font-size: 1.55rem;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.setting-icon.clock,
|
||||
.stat-days .stat-icon { color: var(--blue); background: var(--blue-soft); }
|
||||
.setting-icon.location,
|
||||
.stat-work .stat-icon,
|
||||
.stat-saldo .stat-icon { color: var(--green); background: var(--green-soft); }
|
||||
.stat-target .stat-icon { color: var(--orange); background: var(--orange-soft); }
|
||||
|
||||
.setting-content {
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
font-size: .9rem;
|
||||
color: #566277;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.setting-label,
|
||||
.stat-card > span:not(.stat-icon) {
|
||||
color: #31415d;
|
||||
font-size: .92rem;
|
||||
font-weight: 750;
|
||||
}
|
||||
|
||||
.settings input,
|
||||
.settings select {
|
||||
border: 1px solid #cbd5e1;
|
||||
border-radius: 10px;
|
||||
padding: 10px 12px;
|
||||
width: 100%;
|
||||
border: 1px solid #cfd9e8;
|
||||
border-radius: 14px;
|
||||
padding: 12px 14px;
|
||||
font: inherit;
|
||||
color: #172033;
|
||||
background: white;
|
||||
color: var(--text);
|
||||
background: #fff;
|
||||
outline: none;
|
||||
box-shadow: inset 0 1px 0 rgba(15, 31, 61, .03);
|
||||
transition: border-color .18s ease, box-shadow .18s ease;
|
||||
}
|
||||
|
||||
.settings input:focus,
|
||||
.settings select:focus {
|
||||
border-color: rgba(37, 99, 235, .6);
|
||||
box-shadow: 0 0 0 4px rgba(37, 99, 235, .10);
|
||||
}
|
||||
|
||||
.drop-zone {
|
||||
position: relative;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
min-height: 190px;
|
||||
border: 2px dashed #9aa8bd;
|
||||
border-radius: 24px;
|
||||
background: white;
|
||||
min-height: 302px;
|
||||
border: 2px dashed rgba(37, 99, 235, .48);
|
||||
border-radius: 28px;
|
||||
cursor: pointer;
|
||||
transition: .2s ease;
|
||||
overflow: hidden;
|
||||
transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
|
||||
}
|
||||
|
||||
.drop-zone::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: 18px;
|
||||
border-radius: 22px;
|
||||
background: radial-gradient(circle, rgba(37, 99, 235, .12), transparent 52%);
|
||||
opacity: .8;
|
||||
}
|
||||
|
||||
.drop-zone:hover,
|
||||
.drop-zone.dragover {
|
||||
border-color: #2f6feb;
|
||||
background: #edf4ff;
|
||||
transform: translateY(-2px);
|
||||
border-color: var(--blue);
|
||||
background: rgba(234, 242, 255, .84);
|
||||
box-shadow: var(--shadow);
|
||||
}
|
||||
|
||||
.drop-zone input {
|
||||
@@ -120,67 +245,131 @@ h1 {
|
||||
inset: 0;
|
||||
opacity: 0;
|
||||
cursor: pointer;
|
||||
z-index: 3;
|
||||
}
|
||||
|
||||
.drop-content {
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
display: grid;
|
||||
justify-items: center;
|
||||
gap: 8px;
|
||||
text-align: center;
|
||||
color: #566277;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.upload-icon {
|
||||
width: 84px;
|
||||
height: 84px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
border-radius: 28px;
|
||||
color: var(--blue);
|
||||
background: #fff;
|
||||
box-shadow: var(--shadow-soft);
|
||||
font-size: 2.8rem;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.drop-content strong {
|
||||
color: #172033;
|
||||
font-size: 1.25rem;
|
||||
color: var(--text);
|
||||
font-size: 1.15rem;
|
||||
margin-top: 8px;
|
||||
}
|
||||
|
||||
.drop-content em {
|
||||
margin-top: 8px;
|
||||
font-style: normal;
|
||||
font-size: .88rem;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.error {
|
||||
margin-top: 18px;
|
||||
padding: 14px 16px;
|
||||
border-radius: 14px;
|
||||
background: #fff1f2;
|
||||
margin: 18px 0 0;
|
||||
padding: 16px 18px;
|
||||
border-radius: 18px;
|
||||
background: var(--red-soft);
|
||||
color: #be123c;
|
||||
border: 1px solid #fecdd3;
|
||||
font-weight: 650;
|
||||
}
|
||||
|
||||
.hidden { display: none !important; }
|
||||
|
||||
.format-hint {
|
||||
color: #566277;
|
||||
min-height: 22px;
|
||||
min-height: 26px;
|
||||
margin: 14px 0 0;
|
||||
color: var(--muted);
|
||||
font-size: .94rem;
|
||||
}
|
||||
|
||||
.summary {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
gap: 16px;
|
||||
gap: 18px;
|
||||
margin: 24px 0;
|
||||
}
|
||||
|
||||
.card {
|
||||
border-radius: 18px;
|
||||
padding: 18px;
|
||||
.stat-card {
|
||||
position: relative;
|
||||
min-height: 146px;
|
||||
border-radius: 22px;
|
||||
padding: 22px;
|
||||
display: grid;
|
||||
grid-template-columns: 64px 1fr;
|
||||
grid-template-areas:
|
||||
"icon label"
|
||||
"icon value"
|
||||
"icon hint";
|
||||
align-items: center;
|
||||
column-gap: 16px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.card span {
|
||||
display: block;
|
||||
color: #566277;
|
||||
margin-bottom: 8px;
|
||||
.stat-card::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
top: 0;
|
||||
height: 3px;
|
||||
background: var(--blue);
|
||||
}
|
||||
|
||||
.card strong {
|
||||
font-size: 1.8rem;
|
||||
.stat-work::after,
|
||||
.stat-saldo::after { background: var(--green); }
|
||||
.stat-target::after { background: var(--orange); }
|
||||
|
||||
.stat-icon { grid-area: icon; }
|
||||
.stat-card > span:not(.stat-icon) { grid-area: label; }
|
||||
.stat-card strong {
|
||||
grid-area: value;
|
||||
font-size: clamp(1.7rem, 3vw, 2.25rem);
|
||||
letter-spacing: -.04em;
|
||||
}
|
||||
.stat-card small {
|
||||
grid-area: hint;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.saldo-card strong.positive { color: #15803d; }
|
||||
.saldo-card strong.negative { color: #b91c1c; }
|
||||
.stat-saldo strong.positive { color: var(--green); }
|
||||
.stat-saldo strong.negative { color: var(--red); }
|
||||
|
||||
.results {
|
||||
border-radius: 24px;
|
||||
padding: 22px;
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
|
||||
gap: 18px;
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
.table-header {
|
||||
.panel {
|
||||
border-radius: 24px;
|
||||
padding: 22px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.table-header,
|
||||
.details summary {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
@@ -188,44 +377,80 @@ h1 {
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.table-header h2 {
|
||||
.section-title {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.section-title > span {
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
border-radius: 10px;
|
||||
background: var(--blue-soft);
|
||||
color: var(--blue);
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
.table-header h2,
|
||||
.details summary strong {
|
||||
margin: 0;
|
||||
font-size: 1.2rem;
|
||||
letter-spacing: -.02em;
|
||||
}
|
||||
|
||||
button {
|
||||
border: none;
|
||||
border-radius: 12px;
|
||||
border: 1px solid rgba(37, 99, 235, .18);
|
||||
border-radius: 14px;
|
||||
padding: 10px 14px;
|
||||
background: #172033;
|
||||
color: white;
|
||||
background: #fff;
|
||||
color: var(--blue);
|
||||
font: inherit;
|
||||
font-weight: 750;
|
||||
cursor: pointer;
|
||||
box-shadow: var(--shadow-soft);
|
||||
transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
|
||||
}
|
||||
|
||||
button:hover { opacity: .9; }
|
||||
button:hover {
|
||||
transform: translateY(-1px);
|
||||
background: var(--blue-soft);
|
||||
}
|
||||
|
||||
.table-wrap {
|
||||
overflow-x: auto;
|
||||
margin: 0 -22px -22px;
|
||||
}
|
||||
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
font-size: .95rem;
|
||||
font-size: .93rem;
|
||||
}
|
||||
|
||||
th,
|
||||
td {
|
||||
padding: 12px 10px;
|
||||
border-bottom: 1px solid #e5eaf3;
|
||||
padding: 14px 22px;
|
||||
border-bottom: 1px solid #e8eef6;
|
||||
text-align: left;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
th {
|
||||
color: #566277;
|
||||
font-weight: 700;
|
||||
background: #f8fafc;
|
||||
color: #3c4a63;
|
||||
font-size: .82rem;
|
||||
font-weight: 850;
|
||||
background: #f8fbff;
|
||||
}
|
||||
|
||||
tbody tr {
|
||||
transition: background .15s ease;
|
||||
}
|
||||
|
||||
tbody tr:hover td {
|
||||
background: rgba(234, 242, 255, .55);
|
||||
}
|
||||
|
||||
tr.holiday-row td {
|
||||
@@ -236,54 +461,78 @@ tr.weekend-row td {
|
||||
background: #f8fafc;
|
||||
}
|
||||
|
||||
.positive { color: #15803d; font-weight: 700; }
|
||||
.negative { color: #b91c1c; font-weight: 700; }
|
||||
.neutral { color: #566277; font-weight: 700; }
|
||||
.positive { color: var(--green); font-weight: 850; }
|
||||
.negative { color: var(--red); font-weight: 850; }
|
||||
.neutral { color: var(--muted); font-weight: 850; }
|
||||
|
||||
.details {
|
||||
margin-top: 20px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.details summary {
|
||||
cursor: pointer;
|
||||
font-weight: 700;
|
||||
margin-bottom: 14px;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.details summary::-webkit-details-marker { display: none; }
|
||||
|
||||
.summary-hint {
|
||||
color: var(--muted);
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 12px;
|
||||
padding: 8px 10px;
|
||||
font-size: .86rem;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.app-footer {
|
||||
position: fixed;
|
||||
right: 16px;
|
||||
bottom: 10px;
|
||||
right: 18px;
|
||||
bottom: 12px;
|
||||
z-index: 30;
|
||||
display: inline-flex;
|
||||
gap: 6px;
|
||||
align-items: center;
|
||||
font-size: 12px;
|
||||
color: #6b7280;
|
||||
background: rgba(255, 255, 255, .85);
|
||||
border: 1px solid #e5eaf3;
|
||||
gap: 8px;
|
||||
padding: 8px 10px;
|
||||
border-radius: 999px;
|
||||
padding: 5px 10px;
|
||||
box-shadow: 0 6px 18px rgba(29, 45, 68, .08);
|
||||
backdrop-filter: blur(6px);
|
||||
color: var(--muted);
|
||||
background: rgba(255, 255, 255, .78);
|
||||
border: 1px solid rgba(219, 229, 242, .9);
|
||||
backdrop-filter: blur(14px);
|
||||
box-shadow: 0 8px 22px rgba(29, 52, 92, .08);
|
||||
font-size: .82rem;
|
||||
}
|
||||
|
||||
.app-footer a {
|
||||
color: inherit;
|
||||
color: var(--blue);
|
||||
text-decoration: none;
|
||||
font-weight: 750;
|
||||
}
|
||||
|
||||
.app-footer a:hover {
|
||||
text-decoration: underline;
|
||||
.app-footer a:hover { text-decoration: underline; }
|
||||
|
||||
@media (max-width: 1100px) {
|
||||
.hero,
|
||||
.results { grid-template-columns: 1fr; }
|
||||
.drop-zone { min-height: 240px; }
|
||||
}
|
||||
|
||||
@media (max-width: 820px) {
|
||||
.hero { align-items: start; flex-direction: column; }
|
||||
.settings { grid-template-columns: 1fr; }
|
||||
.app { padding-top: 28px; }
|
||||
.settings,
|
||||
.summary { grid-template-columns: 1fr 1fr; }
|
||||
.brand { height: 62px; }
|
||||
.hero { gap: 22px; }
|
||||
}
|
||||
|
||||
@media (max-width: 540px) {
|
||||
@media (max-width: 620px) {
|
||||
.app,
|
||||
.brand { width: min(100% - 22px, 1360px); }
|
||||
.settings,
|
||||
.summary { grid-template-columns: 1fr; }
|
||||
.app-footer { right: 8px; bottom: 8px; font-size: 11px; }
|
||||
.setting-card,
|
||||
.stat-card { border-radius: 18px; }
|
||||
.table-header,
|
||||
.details summary { align-items: flex-start; flex-direction: column; }
|
||||
.app-footer { left: 12px; right: 12px; justify-content: center; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user