@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Legacy variable aliases — used in inline styles throughout HTML */
    --bg-color: #080808;
    --card-bg: rgba(255,255,255,0.04);
    --text-main: #f1f5f9;
    --text-muted: #6b7280;
    --accent-color: #818cf8;
    --accent-hover: #6366f1;
    --border-color: rgba(255,255,255,0.09);
    --status-oczekuje: #f59e0b;
    --status-naprawa: #818cf8;
    --status-gotowy: #10b981;
    --status-czesci: #a855f7;

    /* Design system */
    --bg: #080808;
    --surface: rgba(255,255,255,0.04);
    --surface-hover: rgba(255,255,255,0.07);
    --surface-active: rgba(99,102,241,0.12);
    --border: rgba(255,255,255,0.09);
    --border-strong: rgba(255,255,255,0.15);
    --text: #f1f5f9;
    --accent: #6366f1;
    --accent-light: #818cf8;
    --accent-glow: rgba(99,102,241,0.25);
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --purple: #a855f7;
    --sidebar-width: 244px;
    --radius: 10px;
    --radius-sm: 7px;
}

/* ═══════════════════════════════
   RESET
═══════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

/* ═══════════════════════════════
   APP LAYOUT
═══════════════════════════════ */

.app-layout {
    display: flex;
    min-height: 100vh;
}

/* ─── SIDEBAR ─── */

.sidebar {
    width: var(--sidebar-width);
    background: #0c0c0c;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
}

.sidebar-logo {
    padding: 22px 18px 18px;
    border-bottom: 1px solid var(--border);
}

.sidebar-logo-inner {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-logo-icon {
    width: 36px;
    height: 36px;
    background: var(--accent-gradient);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
    box-shadow: 0 0 18px var(--accent-glow);
}

.sidebar-logo-text strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.sidebar-logo-text span {
    display: block;
    font-size: 10.5px;
    color: var(--text-muted);
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-top: 1px;
}

.sidebar-nav {
    flex: 1;
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow-y: auto;
}

.sidebar-section-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.9px;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 10px 10px 6px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-muted);
    font-size: 13.5px;
    font-weight: 500;
    transition: all 0.13s ease;
    position: relative;
}

.sidebar-nav a:hover {
    color: var(--text);
    background: var(--surface-hover);
}

.sidebar-nav a.nav-active {
    color: var(--accent-light);
    background: var(--surface-active);
    font-weight: 600;
}

.sidebar-nav a.nav-active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 56%;
    background: var(--accent-gradient);
    border-radius: 0 3px 3px 0;
}

.nav-icon {
    font-size: 15px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    opacity: 0.85;
}

.sidebar-footer {
    padding: 12px 10px;
    border-top: 1px solid var(--border);
}

.btn-wyloguj {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 9px 10px;
    background: transparent;
    border: 1px solid rgba(239,68,68,0.18);
    border-radius: var(--radius-sm);
    color: #f87171;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.13s ease;
    font-family: inherit;
}

.btn-wyloguj:hover {
    background: rgba(239,68,68,0.08);
    border-color: rgba(239,68,68,0.35);
}

/* ─── MAIN CONTENT AREA ─── */

.main-wrapper {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.page-header {
    padding: 18px 30px;
    border-bottom: 1px solid var(--border);
    background: rgba(8,8,8,0.85);
    backdrop-filter: blur(14px);
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.page-header h1 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text);
}

.page-header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.page-body {
    padding: 26px 30px;
    flex: 1;
}

/* ═══════════════════════════════
   CARDS
═══════════════════════════════ */

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 18px;
    transition: border-color 0.2s;
}

.card:hover { border-color: var(--border-strong); }

.card h2 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    letter-spacing: -0.3px;
}

/* ═══════════════════════════════
   FORMS
═══════════════════════════════ */

.form-group { margin-bottom: 16px; }

.form-row { display: flex; gap: 14px; flex-wrap: wrap; }
.form-row .form-group { flex: 1; min-width: 200px; }

label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-muted);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

input, textarea, select {
    width: 100%;
    padding: 10px 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

input::placeholder, textarea::placeholder { color: var(--text-muted); }

select option { background: #1a1a1a; }

/* ═══════════════════════════════
   BUTTONS
═══════════════════════════════ */

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    font-family: inherit;
    width: 100%;
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    text-decoration: none;
    transition: opacity 0.15s, transform 0.1s, box-shadow 0.15s;
    box-shadow: 0 4px 16px var(--accent-glow);
    letter-spacing: -0.1px;
}

.btn-primary:hover {
    opacity: 0.88;
    transform: translateY(-1px);
    box-shadow: 0 7px 22px var(--accent-glow);
}

.btn-primary:active { transform: translateY(0); }

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 500;
    font-size: 13px;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.13s;
}

.btn-secondary:hover {
    background: var(--surface-hover);
    border-color: var(--border-strong);
}

.btn-small {
    background: var(--surface);
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    font-family: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.13s;
    white-space: nowrap;
}

.btn-small:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* ═══════════════════════════════
   TABLE
═══════════════════════════════ */

table { width: 100%; border-collapse: collapse; margin-top: 10px; }

th {
    text-align: left;
    padding: 10px 14px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
}

td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    font-size: 13.5px;
    color: var(--text);
}

tbody tr { transition: background 0.1s; }
tbody tr:hover td { background: var(--surface-hover); cursor: pointer; }
tbody tr:last-child td { border-bottom: none; }

/* ═══════════════════════════════
   SEARCH
═══════════════════════════════ */

.wyszukiwarka {
    width: 100%;
    padding: 11px 14px;
    margin-bottom: 14px;
    font-size: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.wyszukiwarka:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

/* ═══════════════════════════════
   KANBAN
═══════════════════════════════ */

.kanban-board {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 12px;
    align-items: flex-start;
}

.kanban-col {
    flex: 1;
    min-width: 272px;
    background: rgba(255,255,255,0.025);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 14px;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s, background 0.2s;
}

.kanban-col h3 {
    text-align: left;
    margin-bottom: 12px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.kanban-col.drag-over {
    border-color: var(--accent);
    background: var(--surface-active);
}

.kanban-cards {
    flex: 1;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.kanban-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px;
    cursor: grab;
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
    position: relative;
    overflow: hidden;
}

.kanban-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.2s;
}

.kanban-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.45);
    border-color: var(--border-strong);
}

.kanban-card:hover::after { opacity: 1; }
.kanban-card:active { cursor: grabbing; transform: scale(0.98); }
.kanban-card.pilne-card { border-left: 3px solid var(--danger); }

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.card-body p {
    margin-bottom: 5px;
    font-size: 13px;
    color: var(--text-muted);
}

.card-body p strong, .card-body p span { color: var(--text); }

/* ═══════════════════════════════
   KPI DASHBOARD
═══════════════════════════════ */

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.stat-kpi {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 18px;
    position: relative;
    overflow: hidden;
    transition: transform 0.15s, border-color 0.15s;
}

.stat-kpi::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: var(--accent-gradient);
    opacity: 0.55;
}

.stat-kpi:hover {
    transform: translateY(-2px);
    border-color: rgba(99,102,241,0.35);
}

.stat-kpi p {
    color: var(--text-muted);
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.stat-kpi h3 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text);
    line-height: 1;
}

.stat-kpi.danger::after { background: var(--danger); opacity: 0.7; }
.stat-kpi.danger h3 { color: var(--danger); }
.stat-kpi.success::after { background: var(--success); opacity: 0.7; }
.stat-kpi.success h3 { color: var(--success); }
.stat-kpi.warning::after { background: var(--warning); opacity: 0.7; }
.stat-kpi.warning h3 { color: var(--warning); }
.stat-kpi.info h3 { color: var(--accent-light); }

/* ═══════════════════════════════
   BADGES
═══════════════════════════════ */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.badge-naprawa { background: rgba(99,102,241,0.14); color: #a5b4fc; border: 1px solid rgba(99,102,241,0.28); }
.badge-gotowy  { background: rgba(16,185,129,0.12); color: #6ee7b7; border: 1px solid rgba(16,185,129,0.28); }
.badge-kolejka { background: rgba(245,158,11,0.12); color: #fcd34d; border: 1px solid rgba(245,158,11,0.28); }
.badge-czesci  { background: rgba(168,85,247,0.12); color: #d8b4fe; border: 1px solid rgba(168,85,247,0.28); }
.badge-pilne   { background: rgba(239,68,68,0.14); color: #fca5a5; border: 1px solid rgba(239,68,68,0.28); padding: 2px 8px; font-size: 10px; }

/* ═══════════════════════════════
   STATS CRM
═══════════════════════════════ */

.stats-container {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.stat-box {
    flex: 1;
    min-width: 130px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 18px;
    text-align: center;
}

.stat-box p {
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-weight: 600;
    margin-bottom: 6px;
}

.stat-box h3 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.5px;
}

/* ═══════════════════════════════
   TOAST
═══════════════════════════════ */

#toast {
    position: fixed;
    bottom: 26px;
    right: 26px;
    background: rgba(16,185,129,0.12);
    border: 1px solid rgba(16,185,129,0.35);
    backdrop-filter: blur(14px);
    color: #6ee7b7;
    padding: 12px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 13px;
    opacity: 0;
    transform: translateY(12px) scale(0.97);
    transition: opacity 0.22s, transform 0.22s;
    pointer-events: none;
    z-index: 9999;
    max-width: 320px;
}

#toast.show { opacity: 1; transform: translateY(0) scale(1); }
#toast.error {
    background: rgba(239,68,68,0.12);
    border-color: rgba(239,68,68,0.35);
    color: #fca5a5;
}

/* ═══════════════════════════════
   FILTER BAR
═══════════════════════════════ */

.filtr-bar {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
    flex-wrap: wrap;
    align-items: center;
    padding: 10px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.filtr-bar span { color: var(--text-muted); font-size: 12px; font-weight: 500; }

.filtr-aktywny {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: white !important;
}

.filtr-date-input {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 5px 9px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-family: inherit;
    width: auto;
}

/* ═══════════════════════════════
   SKELETON
═══════════════════════════════ */

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.09) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.6s infinite;
    border-radius: var(--radius-sm);
}

.skeleton-line { height: 13px; margin-bottom: 10px; }
.skeleton-line.short { width: 35%; }
.skeleton-line.medium { width: 60%; }
.skeleton-line.full { width: 100%; }
.skeleton-block { height: 68px; margin-bottom: 10px; }
.skeleton-heading { height: 20px; margin-bottom: 18px; width: 45%; }

/* ═══════════════════════════════
   HISTORY TIMELINE
═══════════════════════════════ */

.historia-timeline { padding: 0; list-style: none; }

.historia-timeline li {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    align-items: flex-start;
}

.historia-timeline li:last-child { border-bottom: none; }

.historia-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-gradient);
    flex-shrink: 0;
    margin-top: 5px;
    box-shadow: 0 0 8px var(--accent-glow);
}

/* ═══════════════════════════════
   PHOTO GALLERY
═══════════════════════════════ */

.foto-galeria { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }

.foto-galeria a img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: border-color 0.2s, transform 0.15s;
}

.foto-galeria a img:hover { border-color: var(--accent); transform: scale(1.05); }

.input-file-styled {
    padding: 9px 12px;
    background: rgba(255,255,255,0.03);
    border: 1px dashed var(--border-strong);
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    width: 100%;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    transition: border-color 0.2s;
}

.input-file-styled:hover { border-color: var(--accent); color: var(--text); }

/* ═══════════════════════════════
   CENNIK
═══════════════════════════════ */

.cennik-kategoria {
    margin-bottom: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.cennik-kat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.03);
    font-weight: 600;
    font-size: 13px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.cennik-kat-icon { font-size: 15px; }
.cennik-kategoria table { width: 100%; border-collapse: collapse; }
.cennik-kategoria table th { color: var(--text-muted); padding: 8px 16px; font-size: 11px; font-weight: 600; text-transform: uppercase; }
.cennik-kategoria table td { padding: 10px 16px; border-bottom: 1px solid var(--border); }
.cennik-kategoria table tr:last-child td { border-bottom: none; }
.cennik-kategoria table tr:hover td { background: var(--surface-hover); }

/* ═══════════════════════════════
   PROFIL KLIENTA - TAG ROWERU
═══════════════════════════════ */

.tag-rower {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(99,102,241,0.1);
    border: 1px solid rgba(99,102,241,0.28);
    color: #a5b4fc;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 13px;
    margin: 4px;
}

.tag-rower button {
    background: none;
    border: none;
    color: #f87171;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0;
}

/* ═══════════════════════════════
   CONTAINER (backwards compat)
═══════════════════════════════ */

.container { max-width: 1400px; margin: 0 auto; }

/* ═══════════════════════════════
   LOGIN PAGE
═══════════════════════════════ */

body.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg);
    background-image: radial-gradient(ellipse at 20% 50%, rgba(99,102,241,0.08) 0%, transparent 60%),
                      radial-gradient(ellipse at 80% 20%, rgba(139,92,246,0.06) 0%, transparent 50%);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-strong);
    border-radius: 16px;
    padding: 40px 36px;
    backdrop-filter: blur(12px);
    box-shadow: 0 24px 64px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
}

.login-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.login-logo strong {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.login-card h2 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.login-subtitle {
    color: var(--text-muted);
    font-size: 13.5px;
    margin-bottom: 28px;
    line-height: 1.5;
}

/* ═══════════════════════════════
   SCROLLBAR
═══════════════════════════════ */

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.09); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.18); }

/* ═══════════════════════════════
   PRINT
═══════════════════════════════ */

.print-rachunek-only, .print-etykieta-only { display: none; }

@media print {
    .sidebar, .page-header { display: none !important; }
    .main-wrapper { margin-left: 0 !important; }
    .page-body { padding: 0 !important; }
    body { background: white; color: black; font-family: 'Segoe UI', Arial, sans-serif; font-size: 12px; line-height: 1.4; }
    .no-print { display: none !important; }
    body.is-printing-rachunek .app-layout,
    body.is-printing-etykieta .app-layout { display: none !important; }

    td, th { color: black !important; background: transparent; border-color: #222; }
    tbody tr:hover td { background: transparent; }
    tbody tr:last-child td { border-bottom: 1px solid #222; }

    body.is-printing-rachunek .print-rachunek-only { display: block; }
    body.is-printing-etykieta .print-etykieta-only { display: block; }

    .etykieta-box { border: 2px dashed black; padding: 20px; width: 300px; margin: 0 auto; }
    .etykieta-box h2 { border-bottom: 2px solid black; padding-bottom: 5px; margin-bottom: 15px; text-align: center; }

    .print-header { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 2px solid #222; padding-bottom: 20px; margin-bottom: 20px; }
    .print-logo-box { display: flex; align-items: center; gap: 15px; }
    .print-logo-box svg { width: 50px; height: 50px; }
    .print-title { text-align: right; }
    .print-title h1 { font-size: 28px; color: #222; margin-bottom: 5px; letter-spacing: 1px; }
    .print-info-grid { display: flex; justify-content: space-between; margin-bottom: 30px; gap: 20px; }
    .print-box { border: 1px solid #ddd; padding: 15px; border-radius: 4px; flex: 1; background: #f9f9f9; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .print-table { width: 100%; border-collapse: collapse; margin-bottom: 30px; }
    .print-table th, .print-table td { border: 1px solid #222; padding: 12px; text-align: left; }
    .print-table th { background: #eee; font-weight: bold; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .print-table td.kwota { text-align: right; white-space: nowrap; }
    .print-table tr.razem td { font-size: 18px; font-weight: bold; background: #f5f5f5; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .print-signatures { display: flex; justify-content: space-between; margin-top: 60px; }
    .print-sign-line { border-top: 1px solid #222; padding-top: 5px; width: 250px; text-align: center; font-size: 11px; }
    .print-footer { margin-top: 40px; font-size: 9px; color: #666; text-align: justify; border-top: 1px dashed #ccc; padding-top: 10px; }
}
