- ČNB exchange rate service with date-specific rates and caching - Invoice/received invoice stats convert foreign currencies to CZK - Dashboard revenue converts all currencies to CZK - Invoice PDF: VAT recap table always in CZK with CNB rate footer - Inline styles replaced with utility classes (step 4 cleanup) - Spinner animation exempt from prefers-reduced-motion Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
421 lines
6.5 KiB
CSS
421 lines
6.5 KiB
CSS
/* ============================================================================
|
|
Reset & Base
|
|
============================================================================ */
|
|
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html {
|
|
scroll-behavior: smooth;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
html,
|
|
body,
|
|
#root {
|
|
min-height: 100%;
|
|
min-height: 100dvh;
|
|
max-width: 100vw;
|
|
}
|
|
|
|
body {
|
|
font-family: var(--font-body);
|
|
font-size: 16px;
|
|
line-height: 1.6;
|
|
color: var(--text-primary);
|
|
background: var(--bg-primary);
|
|
overflow-x: hidden;
|
|
overscroll-behavior-x: none;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
transition:
|
|
background-color 0.3s ease,
|
|
color 0.3s ease;
|
|
}
|
|
|
|
.admin-sidebar,
|
|
.admin-header,
|
|
.admin-card,
|
|
.admin-modal {
|
|
transition:
|
|
background-color 0.3s ease,
|
|
color 0.3s ease,
|
|
border-color 0.3s ease;
|
|
}
|
|
|
|
#root {
|
|
overflow-x: hidden;
|
|
touch-action: pan-y pinch-zoom;
|
|
}
|
|
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4,
|
|
h5,
|
|
h6 {
|
|
font-family: var(--font-heading);
|
|
font-weight: 700;
|
|
line-height: 1.2;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
h1 {
|
|
font-size: clamp(2.5rem, 5vw, 4rem);
|
|
}
|
|
h2 {
|
|
font-size: clamp(2rem, 4vw, 3rem);
|
|
}
|
|
h3 {
|
|
font-size: clamp(1.25rem, 2vw, 1.5rem);
|
|
}
|
|
|
|
p {
|
|
color: var(--text-secondary);
|
|
line-height: 1.6;
|
|
}
|
|
|
|
a {
|
|
color: inherit;
|
|
text-decoration: none;
|
|
transition: var(--transition);
|
|
}
|
|
|
|
img {
|
|
max-width: 100%;
|
|
height: auto;
|
|
}
|
|
|
|
::-webkit-scrollbar {
|
|
width: 8px;
|
|
}
|
|
|
|
::-webkit-scrollbar-track {
|
|
background: var(--bg-secondary);
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background: var(--border-color);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background: var(--text-muted);
|
|
}
|
|
|
|
::selection {
|
|
background: var(--accent-color);
|
|
color: #fff;
|
|
}
|
|
|
|
/* ============================================================================
|
|
Base / Utilities
|
|
============================================================================ */
|
|
|
|
.text-warning {
|
|
color: var(--warning) !important;
|
|
}
|
|
|
|
.text-danger {
|
|
color: var(--danger) !important;
|
|
}
|
|
|
|
.text-success {
|
|
color: var(--success) !important;
|
|
}
|
|
|
|
.text-muted {
|
|
color: var(--text-muted) !important;
|
|
}
|
|
|
|
.text-secondary {
|
|
color: var(--text-secondary) !important;
|
|
}
|
|
|
|
.text-tertiary {
|
|
color: var(--text-tertiary) !important;
|
|
}
|
|
|
|
.text-accent {
|
|
color: var(--accent-color) !important;
|
|
}
|
|
|
|
.fw-600 {
|
|
font-weight: 600 !important;
|
|
}
|
|
|
|
.link-accent {
|
|
color: var(--accent-color);
|
|
font-weight: 500;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.link-accent:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* Layout utilities */
|
|
.flex-1 {
|
|
flex: 1;
|
|
}
|
|
.flex-row {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
.flex-row-gap {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-3);
|
|
}
|
|
.flex-between {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
/* Spacing utilities */
|
|
.mb-2 {
|
|
margin-bottom: var(--space-2);
|
|
}
|
|
.mb-4 {
|
|
margin-bottom: var(--space-4);
|
|
}
|
|
.mb-6 {
|
|
margin-bottom: var(--space-6);
|
|
}
|
|
.mt-2 {
|
|
margin-top: var(--space-2);
|
|
}
|
|
.mt-6 {
|
|
margin-top: var(--space-6);
|
|
}
|
|
.gap-2 {
|
|
gap: var(--space-2);
|
|
}
|
|
.gap-4 {
|
|
gap: var(--space-4);
|
|
}
|
|
.gap-5 {
|
|
gap: var(--space-5);
|
|
}
|
|
|
|
/* Typography utilities */
|
|
.fw-500 {
|
|
font-weight: 500;
|
|
}
|
|
.text-right {
|
|
text-align: right;
|
|
}
|
|
.text-center {
|
|
text-align: center;
|
|
}
|
|
|
|
/* Spinner variant */
|
|
.admin-spinner-sm {
|
|
width: 16px;
|
|
height: 16px;
|
|
border-width: 2px;
|
|
}
|
|
|
|
/* Monospace for data values (times, dates, numbers, IDs) */
|
|
.admin-mono {
|
|
font-family: var(--font-mono);
|
|
font-size: 0.875em;
|
|
letter-spacing: -0.01em;
|
|
}
|
|
|
|
/* Drag handle */
|
|
.admin-drag-handle {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 24px;
|
|
height: 24px;
|
|
border: none;
|
|
background: none;
|
|
color: var(--text-muted);
|
|
cursor: grab;
|
|
border-radius: 4px;
|
|
padding: 0;
|
|
transition:
|
|
color 0.15s,
|
|
background 0.15s;
|
|
touch-action: none;
|
|
}
|
|
|
|
.admin-drag-handle:hover {
|
|
color: var(--text-primary);
|
|
background: var(--bg-secondary);
|
|
}
|
|
|
|
.admin-drag-handle:active {
|
|
cursor: grabbing;
|
|
}
|
|
|
|
/* Error stack (DEV only) */
|
|
.admin-error-stack {
|
|
max-width: 600px;
|
|
max-height: 200px;
|
|
overflow: auto;
|
|
padding: 0.75rem 1rem;
|
|
margin: 0;
|
|
border-radius: var(--border-radius-sm);
|
|
background: var(--bg-tertiary);
|
|
border: 1px solid var(--border-color);
|
|
color: var(--danger-color);
|
|
font-family: var(--font-mono);
|
|
font-size: 11px;
|
|
line-height: 1.5;
|
|
text-align: left;
|
|
white-space: pre-wrap;
|
|
word-break: break-word;
|
|
}
|
|
|
|
/* Keyboard shortcut badge */
|
|
.admin-kbd {
|
|
display: inline-block;
|
|
padding: 2px 7px;
|
|
font-family: var(--font-mono);
|
|
font-size: 12px;
|
|
line-height: 1.4;
|
|
border-radius: 4px;
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border-color);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* Loading & Animations */
|
|
.admin-spinner {
|
|
width: 32px;
|
|
height: 32px;
|
|
border: 2px solid var(--accent-color);
|
|
border-top-color: transparent;
|
|
border-radius: 50%;
|
|
animation: spin 0.8s linear infinite;
|
|
}
|
|
|
|
.admin-loading {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: 256px;
|
|
}
|
|
|
|
@keyframes spin {
|
|
to {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
|
|
@keyframes float {
|
|
0%,
|
|
100% {
|
|
transform: translate(0, 0);
|
|
}
|
|
50% {
|
|
transform: translate(30px, -30px);
|
|
}
|
|
}
|
|
|
|
@keyframes pulse {
|
|
0%,
|
|
100% {
|
|
opacity: 1;
|
|
}
|
|
50% {
|
|
opacity: 0.5;
|
|
}
|
|
}
|
|
|
|
@keyframes shimmer {
|
|
0% {
|
|
background-position: -200% 0;
|
|
}
|
|
100% {
|
|
background-position: 200% 0;
|
|
}
|
|
}
|
|
|
|
/* ── Additional Utilities ─────────────────────────────────────────── */
|
|
|
|
/* Font sizes */
|
|
.text-xs {
|
|
font-size: 0.75rem;
|
|
}
|
|
.text-sm {
|
|
font-size: 0.8125rem;
|
|
}
|
|
.text-md {
|
|
font-size: 0.875rem;
|
|
}
|
|
.text-base {
|
|
font-size: 1rem;
|
|
}
|
|
|
|
/* Width utilities */
|
|
.w-full {
|
|
width: 100%;
|
|
}
|
|
.max-w-xs {
|
|
max-width: 120px;
|
|
}
|
|
.max-w-sm {
|
|
max-width: 200px;
|
|
}
|
|
|
|
/* Whitespace */
|
|
.whitespace-nowrap {
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* Additional gaps */
|
|
.gap-1 {
|
|
gap: 0.25rem;
|
|
}
|
|
.gap-3 {
|
|
gap: 0.75rem;
|
|
}
|
|
.gap-6 {
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
/* Additional margins */
|
|
.mb-1 {
|
|
margin-bottom: 0.25rem;
|
|
}
|
|
.mb-3 {
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
.mt-1 {
|
|
margin-top: 0.25rem;
|
|
}
|
|
.mt-3 {
|
|
margin-top: 0.75rem;
|
|
}
|
|
|
|
/* Display */
|
|
.inline-flex {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
}
|
|
|
|
/* Prefers reduced motion */
|
|
@media (prefers-reduced-motion: reduce) {
|
|
*,
|
|
*::before,
|
|
*::after {
|
|
animation-duration: 0.01ms !important;
|
|
animation-iteration-count: 1 !important;
|
|
transition-duration: 0.01ms !important;
|
|
scroll-behavior: auto !important;
|
|
}
|
|
|
|
.admin-spinner {
|
|
animation-duration: 0.8s !important;
|
|
animation-iteration-count: infinite !important;
|
|
}
|
|
}
|