/* ===== KSeFeusz.pl - style.css - wersja 1.4.0 (2026-04-15) ===== */
/* ===== STYLE OGÓLNE ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

/* ===== WYRÓŻNIONE ELEMENTY W SEKCJI ===== */
.benefit-item.highlight {
  background: #f8fafc;
  border-radius: 12px;
  border-left: 4px solid #3498db;
  margin: 20px 0;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.benefit-item.highlight .benefit-icon {
  font-size: 42px;
}

/* Przykłady wizualizacji */
.benefit-item pre, .benefit-item div[style*="background"] {
  font-family: 'Consolas', monospace;
  font-size: 12px;
  margin-top: 10px;
}

/* ===== SEKCJA ROZWOJU ===== */
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 30px 0;
}

.roadmap-item {
  text-align: center;
  padding: 20px;
  border-radius: 12px;
  transition: transform 0.2s;
}

.roadmap-item:hover {
  transform: translateY(-3px);
}

.roadmap-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-size: 24px;
}

.roadmap-item.done .roadmap-icon {
  background: #e8f8f5;
  color: #27ae60;
}

.roadmap-item.current .roadmap-icon {
  background: #fef5e7;
  color: #e67e22;
}

.roadmap-item.future .roadmap-icon {
  background: #edf2f7;
  color: #7f8c8d;
}

.contact-card {
  background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
  border-radius: 20px;
  padding: 40px;
  color: white;
  margin: 30px 0;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.contact-info {
  flex: 1;
  min-width: 250px;
}

.contact-details {
  flex: 2;
  min-width: 300px;
}

.tag-cloud {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.tag {
  background: rgba(255,255,255,0.15);
  padding: 5px 15px;
  border-radius: 30px;
  font-size: 14px;
  transition: background 0.2s;
}

.tag:hover {
  background: rgba(255,255,255,0.25);
}

.tab:focus,
.cta-box:focus,
.cta-box2:focus,
.section-btn:focus,
.action-btn:focus {
  outline: 2px solid #3498db;
  outline-offset: 2px;
}

/* Responsywność */
@media (max-width: 768px) {
  .roadmap-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-card {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
  }
  
  .tag-cloud {
    justify-content: center;
  }
}



body { 
  font-family: 'Segoe UI', Arial, sans-serif; 
  margin: 0; 
  background: #f5f7fa; 
  color: #2c3e50;
  line-height: 1.6;
}

/* ===== NAGŁÓWEK ===== */
.main-header {
  background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
  color: white;
  padding: 12px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo {
  width: 210px;        /* Szerokość */
  height: 70px;       /* Wysokość */
  background: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  color: #2c3e50;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.site-title h1 {
  font-size: 24px;
  font-weight: 600;
  margin: 0;
}

.site-title p {
  font-size: 14px;
  opacity: 0.9;
  margin: 15px 0 0;
}

.security-badge {
  background: rgba(255,255,255,0.15);
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(5px);
  white-space: nowrap;
  margin: 15px 0 0 0;
}

/* ===== ZAKŁADKI ===== */
.tabs-container {
  max-width: 1200px;
  margin: 30px auto 0;
  padding: 0 20px;
}

.tabs {
  display: flex;
  gap: 10px;
  border-bottom: 2px solid #e0e7ef;
  padding-bottom: 0;
}

.tab {
  padding: 12px 30px;
  background: white;
  border: none;
  border-radius: 8px 8px 0 0;
  font-size: 16px;
  font-weight: 600;
  color: #7f8c8d;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
  border-bottom: none;
  position: relative;
  bottom: -2px;
}

.tab:hover {
  color: #3498db;
  background: #f8fafc;
}

.tab.active {
  color: #2c3e50;
  background: white;
  border-color: #e0e7ef;
  border-bottom-color: white;
}

/* ===== KONTENER GŁÓWNY ===== */
.main-container {
  max-width: 1200px;
  margin: 0 auto 40px;
  padding: 0 20px;
}

/* ===== PANELE ===== */
.panel {
  display: none;
  background: white;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  padding: 30px;
  border: 2px solid #e0e7ef;
  border-top: none;
}

.panel.active {
  display: block;
}

/* ===== PANEL GŁÓWNY (INFO) ===== */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin: 5px 0;
  font-size: 9px;
}

.info-card {
  background: #f8fafc;
  border-radius: 16px;
  padding: 25px;
  border: 1px solid #e0e7ef;
  transition: transform 0.2s;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.info-card h3 {
  color: #2c3e50;
  margin: 0 0 15px;
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-card h3 i {
  color: #3498db;
  font-size: 24px;
}

.info-card p {
  color: #5d6d7e;
  margin-bottom: 20px;
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  padding: 10px 0;
  border-bottom: 1px solid #e0e7ef;
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list li i {
  color: #27ae60;
  font-size: 18px;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.step {
  display: flex;
  align-items: center;
  gap: 15px;
}

.step-number {
  width: 40px;
  height: 40px;
  background: #3498db;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
  flex-shrink: 0;
}

.step-text {
  font-size: 16px;
  color: #2c3e50;
}

/* ===== PANEL FAKTURY ===== */
.upload-area {
  background: #f8fafc;
  border: 2px dashed #cbd5e0;
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  margin-bottom: 30px;
  transition: all 0.2s;
  cursor: pointer;
}

.upload-area:hover {
  border-color: #3498db;
  background: #f0f7ff;
}

.upload-area i {
  font-size: 48px;
  color: #3498db;
  margin-bottom: 15px;
}

.upload-area h3 {
  font-size: 20px;
  margin: 0 0 10px;
  color: #2c3e50;
}

.upload-area p {
  color: #7f8c8d;
  margin: 0 0 20px;
}

.upload-btn {
  background: #3498db;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  display: inline-block;
}

.upload-btn:hover {
  background: #2980b9;
}

.file-info {
  background: #edf2f7;
  border-radius: 8px;
  padding: 12px 20px;
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.file-name {
  font-weight: 600;
  color: #2c3e50;
  display: flex;
  align-items: center;
  gap: 8px;
}

.file-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
  align-items: center;
}

.row-details-placeholder {
  display: none;
  padding: 6px 10px;
  background: #f8f9fa;
  border: 1px dashed #bdc3c7;
  border-radius: 4px;
  font-size: 10px;
  color: #95a5a6;
  font-style: italic;
  margin: 4px 0;
}

#pages.hide-row-details .row-details-placeholder {
  display: block;
}

.action-btn {
  background: white;
  border: 1px solid #cbd5e0;
  padding: 8px 15px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
}

.action-btn:hover {
  background: #3498db;
  color: white;
  border-color: #3498db;
}

.action-btn.danger:hover {
  background: #e74c3c;
  border-color: #e74c3c;
}
/* ===== MINIMALISTYCZNY INTERFEJS ===== */

/* Hero section */
.hero-section {
  text-align: center;
  max-width: 700px;
  margin: 20px auto 40px;
  padding: 20px;
}

.hero-section h2 {
  font-size: 36px;
  color: #2c3e50;
  margin: 0 0 15px;
  font-weight: 600;
  line-height: 1.2;
}

.hero-text {
  font-size: 18px;
  color: #5d6d7e;
  margin: 0 0 30px;
}

/* CTA Box */
.cta-box {
  background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
  color: white;
  padding: 25px 40px;  /* większy padding */
  border-radius: 60px;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
  margin-bottom: 20px;
  border: none;
}

.cta-box2 {
  
  background: white;
  color: #2c3e50;
  padding: 25px 30px;  /* mniejszy padding */
  border-radius: 60px;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(44, 62, 80, 0.1);
  margin-bottom: 20px;
  border: 2px solid #3498db;  /* obramowanie w kolorze akcentu */
  background: transparent;
  backdrop-filter: blur(2px);
}

.cta-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.cta-box2:hover {
   transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
  background: rgba(52, 152, 219, 0.05);
  border-color: #2980b9;
}

.cta-icon {
  font-size: 28px;
}

.cta-text {
  font-size: 20px;
  font-weight: 500;
}

.cta-arrow {
  font-size: 24px;
  margin-left: 10px;
}

/* Mini feature list */
.features-mini {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin: 30px 0;
}

.feature-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #5d6d7e;
  font-size: 16px;
}

.feature-mini-icon {
  font-size: 20px;
}

/* Mini info grid */
.info-grid-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: 800px;
  margin: 40px auto 0;
  padding: 20px 0;
  border-top: 1px solid #e0e7ef;
}

.info-card-mini {
  text-align: left;
}

.info-card-mini h3 {
  color: #2c3e50;
  font-size: 18px;
  margin: 0 0 15px;
  font-weight: 600;
}

.info-card-mini p {
  color: #5d6d7e;
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
}

.steps-mini {
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps-mini li {
  color: #5d6d7e;
  font-size: 15px;
  margin-bottom: 8px;
}

.steps-mini strong {
  color: #3498db;
  font-weight: 600;
}

/* Uproszczona stopka */


.footer-section p {
  opacity: 0.8;
  font-size: 14px;
  margin: 0;
}

.footer-section a {
  color: white;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.footer-section a:hover {
  opacity: 1;
  text-decoration: underline;
}
/* ===== KONTENER FAKTURY ===== */
.invoice-container {
  width: 794px;
  margin: 10px auto;
  background: #fff;
  padding: 15px 15px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  box-sizing: border-box;
  border-radius: 8px;
  border: 1px solid #e0e7ef;
}

/* ===== STOPKA GŁÓWNA ===== */
.main-footer {
  background: #2c3e50;
  color: white;
  padding: 20px 0 20px;
  margin-top: 60px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.footer-section h4 {
  margin: 0 0 20px;
  font-size: 18px;
  color: #3498db;
}

.footer-section p {
  opacity: 0.8;
  line-height: 1.6;
  margin: 0 0 10px;
}

.footer-section a {
  color: white;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.footer-section a:hover {
  opacity: 1;
  text-decoration: underline;
}

.copyright {
  text-align: center;
  padding: 20px 0 0;
  margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 14px;
  opacity: 0.6;
}

/* ===== IKONY ===== */
.icon {
  display: inline-block;
  width: 20px;
  text-align: center;
}



/* Ukrywanie obszaru wgrywania */
.upload-area.hidden {
  display: none;
}

/* ===== MENU NAWIGACYJNE SEKCJI ===== */
.section-menu {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 30px;
  padding: 0 10px;
}

.section-btn {
  background: white;
  border: 2px solid #e0e7ef;
  padding: 12px 25px;
  border-radius: 40px;
  font-size: 16px;
  font-weight: 600;
  color: #5d6d7e;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.section-btn:hover {
  border-color: #3498db;
  color: #3498db;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(52, 152, 219, 0.2);
}

.section-btn.active {
  background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

/* ===== SEKCJE ===== */
.section-content {
  display: block;
  margin: 40px 0;
  scroll-margin-top: 30px;
}

.section-content a:link {
  color: white;
  text-decoration: none;
}

.section-content a:visited {
  color: white;  /* jaśniejszy niebieski */
  text-decoration: none;
}

.section-content a:hover {
  color: white;  /* ciemniejszy niebieski */
  text-decoration: underline;
}

.section-card {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  border: 1px solid #e0e7ef;
    transition: box-shadow 0.2s;
}

.section-card:hover {
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.section-card h2 {
  font-size: 32px;
  color: #2c3e50;
  margin: 0 0 20px;
  font-weight: 600;
  text-align: center;
}

.section-card h2 span {
  background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  text-align: center;
  font-size: 18px;
  color: #7f8c8d;
  margin-bottom: 40px;
}

/* ===== GRID DLA FUNKCJI ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 30px;
}

.feature-card {
  background: #f8fafc;
  border-radius: 16px;
  padding: 25px;
  text-align: center;
  transition: transform 0.2s;
  border: 1px solid #e0e7ef;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(52, 152, 219, 0.1);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 15px;
}

.feature-card h3 {
  font-size: 20px;
  color: #2c3e50;
  margin: 0 0 10px;
}

.feature-card p {
  color: #7f8c8d;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

/* ===== LISTA ZALET ===== */
.benefits-list {
  max-width: 800px;
  margin: 0 auto;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border-bottom: 1px solid #e0e7ef;
}

.benefit-item:last-child {
  border-bottom: none;
}

.benefit-icon {
  font-size: 36px;
  min-width: 60px;
  text-align: center;
}

.benefit-content {
  flex: 1;
}

.benefit-content h3 {
  font-size: 20px;
  color: #2c3e50;
  margin: 0 0 5px;
}

.benefit-content p {
  color: #7f8c8d;
  margin: 0;
  font-size: 16px;
}

/* ===== STATYSTYKI ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 40px 0;
  text-align: center;
}

.stat-item {
  padding: 20px;
}

.stat-number {
  font-size: 48px;
  font-weight: 700;
  background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.stat-label {
  font-size: 16px;
  color: #7f8c8d;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== PRZYCISK "DO GÓRY" ===== */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #3498db;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
  transition: all 0.2s;
  z-index: 1000;
}

.scroll-top:hover {
  background: #2c3e50;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.scroll-top.visible {
  display: flex;
}




/* ===== RESPONSYWNOŚĆ ===== */
@media  (max-width: 768px) {
  .section-menu {
    flex-direction: column;
    align-items: stretch;
    padding: 0 20px;
  }
  
  .section-btn {
    width: 100%;
    text-align: center;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .benefit-item {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  
  .section-card {
    padding: 20px;
  }
  
  .scroll-top {
    bottom: 20px;
    right: 20px;
  }
}

/* ===== STYLE FAKTURY ===== */
header { 
  display: flex; 
  justify-content: space-between; 
  margin-bottom: 5px; 
  border-bottom: 2px solid #3498db;
  padding-bottom: 5px;
}

h1 { 
  font-size: 20px; 
  margin: 0; 
  color: #2c3e50;
  font-weight: 600;
  letter-spacing: 0.5px;
}

h2 { 
  font-size: 14px; 
  margin: 0 0 4px 0; 
  border-bottom: 1px solid #bdc3c7;
  padding-bottom: 4px;
  color: #34495e;
  font-weight: 600;
}

.section { 
  font-size: 10px; 
  margin-bottom: 5px; 
}

.two-cols { 
  display: flex; 
  gap: 5px; 
}

.col { 
  flex: 1; 
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
  margin: 5px 0 15px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

th, td { 
  border: 1px solid #bdc3c7; 
  padding: 2px; 
}

th { 
  background: #ecf0f1; 
  font-weight: 600;
  color: #2c3e50;
  text-align: center;
}

td { 
  vertical-align: top; 
  color: #000000; 
}

td small {
  font-size: 9px;
  color: #666;
  font-style: italic;
}

.right { 
  text-align: right; 
}

.center { 
  text-align: center; 
}

.diff-row { 
  background: #f9f9f9; 
  font-style: italic; 
}

.before-row { 
  background: #fef5e7; 
}

.after-row { 
  background: #e8f8f5; 
}

.vat-summary {
  margin-top: 5px;
  width: 50%;
  margin-left: auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.vat-summary th { 
  background: #d5dbdb; 
}

#pages.hide-row-details .row-details-section {
  display: none !important;
}

.additional-info {
  margin-top: 5px;
  font-size: 9px;
  border-top: 2px dashed #bdc3c7;
  padding-top: 5px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin-top: 5px;
}

.info-item {
  border: 1px solid #e0e0e0;
  padding: 2px;
  padding-left: 5px;
  background: #fafafa;
  border-radius: 3px;
  display: flex;           /* ZMIANA: flex zamiast block */
  flex-wrap: wrap;         /* Pozwala zawijać się jeśli potrzeba */
  align-items: baseline;   /* Wyrównanie do linii bazowej */
  gap: 4px;                /* Odstęp między etykietą a wartością */
}

.info-label {
  font-weight: bold;
  color: #2c3e50;
  font-size: 10px;
  text-transform: uppercase;
  min-width: auto;         /* ZMIANA: auto zamiast 110px */
  white-space: nowrap;      /* Zapobiega zawijaniu etykiety */
}

/* Style dla załączników */
.zalacznik-tabela {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
  margin: 10px 0;
}

.zalacznik-tabela th {
  border: 1px solid #bdc3c7;
  padding: 4px;
  background: #ecf0f1;
  font-weight: 600;
}

.zalacznik-tabela td {
  border: 1px solid #bdc3c7;
  padding: 4px;
}

.zalacznik-opis {
  font-weight: bold;
  margin: 10px 0 5px 0;
  color: #2c3e50;
}

.zalacznik-akapit {
  margin: 5px 0;
  font-size: 11px;
  line-height: 1.4;
}

.footer-section-invoice {
  margin-top: 5px;
  font-size: 11px;
  border-top: 2px solid #bdc3c7;
  padding-top: 5px;
  background: #f8f9f9;
  border-radius: 0 0 4px 4px;
}

.footer-content-invoice {
  padding: 8px 5px;
  line-height: 1.6;
}

.footer-line {
  padding: 0px 0;
  border-bottom: 1px dotted #ccc;
}

.footer-line:last-child {
  border-bottom: none;
}

.footer-label {
  font-weight: bold;
  color: #34495e;
  display: inline-block;
  min-width: 110px;
}

.znacznik {

  padding: 1px 1px;
  font-size: 8px;
  color: #555555;
  margin: 1px;
}

.current-file-info {
  color: #000000;
  font-weight: 500;
  background: #ecf0f1;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qr-section {
  margin-top: 5px;
  margin-bottom: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-top: 2px solid #3498db;
  padding-top: 5px;
}

.schema-warning {
  background: #fdf3f2;
  border: 1px solid #e74c3c;
  border-left: 4px solid #e74c3c;
  border-radius: 4px;
  padding: 10px 14px;
  font-size: 12px;
  color: #5d2e2e;
  max-width: 700px;
  text-align: left;
}

.schema-warning strong {
  display: block;
  color: #c0392b;
  margin-bottom: 4px;
  font-size: 13px;
}

.unknown-elements-list {
  margin-top: 8px;
}

.unknown-element-xml {
  background: #fff5f5;
  border: 1px solid #f5c6cb;
  border-radius: 3px;
  padding: 6px 10px;
  font-size: 10px;
  font-family: monospace;
  white-space: pre-wrap;
  word-break: break-all;
  margin: 4px 0 0 0;
  color: #7b241c;
}

.qr-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
  background: white;
  padding: 5px 5x;
  border-radius: 10px;
  border: 1px solid #bdc3c7;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  width: fit-content;
  margin: 0 auto;
  max-width: 100%;
}

.qr-code {
  width: 180px !important;
  height: 180px !important;
  background: white;
  padding: 5px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  flex-shrink: 0;
}

.qr-info {
  font-size: 10px;
  color: #2c3e50;
  text-align: left;
  max-width: 400px;
}

.qr-info strong {
  font-size: 12px;
  display: block;
  color: #2c3e50;
  margin-bottom: 5px;
}

.qr-info small {
  color: #7f8c8d;
  font-size: 10px;
  display: block;
  margin-top: 5px;
}

.qr-hash {
  font-family: monospace;
  background: #f0f0f0;
  padding: 6px 5px;
  border-radius: 4px;
  font-size: 10px;
  word-break: break-all;
  margin: 5px 0;
}

.qr-link {
  margin-top: 5px;
}

.qr-link a {
  color: #3498db;
  text-decoration: none;
  font-weight: bold;
  word-break: break-all;
  font-size: 10px;
}

.qr-link a:hover {
  text-decoration: underline;
}

.error-message {
  position: fixed;
  top: 90px;
  left: 50%;
  transform: translateX(-50%);
  background: #e74c3c;
  color: white;
  padding: 12px 25px;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 1001;
  display: none;
  font-weight: bold;
}

.error-message.success {
  background: #27ae60;
}

/* ===== PRZYKŁADOWE FAKTURY ===== */
.samples-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 30px 0 20px;
}

.sample-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 25px;
  background: #f8fafc;
  border: 1px solid #e0e7ef;
  border-radius: 12px;
  transition: box-shadow 0.2s;
}

.sample-item:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.sample-icon {
  width: 48px;
  height: 48px;
  background: #e8f4fd;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #3498db;
  flex-shrink: 0;
}

.sample-icon-kor {
  background: #fef5e7;
  color: #e67e22;
}

.sample-icon-zal {
  background: #e8f8f5;
  color: #27ae60;
}

.sample-info {
  flex: 1;
}

.sample-info h3 {
  margin: 0 0 4px;
  font-size: 16px;
  color: #2c3e50;
}

.sample-info p {
  margin: 0;
  font-size: 13px;
  color: #7f8c8d;
}

.sample-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.sample-btn {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.sample-download {
  background: white;
  color: #2c3e50 !important;
  border: 1px solid #cbd5e0;
}

.sample-download:hover {
  background: #f0f4f8;
  color: #2c3e50 !important;
}

.sample-try {
  background: #3498db;
  color: white;
}

.sample-try:hover {
  background: #2980b9;
}

.samples-note {
  font-size: 13px;
  color: #95a5a6;
  text-align: center;
  margin-top: 10px;
}

.samples-note i {
  margin-right: 4px;
}

/* ===== WIDOK UPROSZCZONY / PEŁNY ===== */
.invoice-container.simplified .hide-in-simplified {
  display: none !important;
}

/* Toggle switch */
.view-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  font-size: 13px;
  color: #5d6d7e;
  font-weight: 500;
}

.view-toggle-label input[type="checkbox"] {
  display: none;
}

.view-toggle-track {
  width: 36px;
  height: 20px;
  background: #95a5a6;
  border-radius: 10px;
  position: relative;
  transition: background 0.2s;
  flex-shrink: 0;
}

.view-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  background: white;
  border-radius: 50%;
  transition: left 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.view-toggle-label input:checked + .view-toggle-track {
  background: #3498db;
}

.view-toggle-label input:checked + .view-toggle-track .view-toggle-thumb {
  left: 19px;
}

/* Info tooltip przy toggle */
.view-toggle-info {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: #95a5a6;
  font-size: 14px;
  cursor: pointer;
  outline: none;
}

.view-toggle-info:hover,
.view-toggle-info:focus {
  color: #3498db;
}

.view-toggle-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #2c3e50;
  color: white;
  font-size: 12px;
  line-height: 1.6;
  padding: 12px 14px;
  border-radius: 8px;
  width: 280px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  z-index: 100;
  pointer-events: none;
  white-space: normal;
}

.view-toggle-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #2c3e50;
}

.view-toggle-info:hover .view-toggle-tooltip,
.view-toggle-info:focus .view-toggle-tooltip {
  display: block;
}

/* ===== STYLE DRUKOWANIA - TYLKO FAKTURA! ===== */
@page { 
  size: A4; 
  margin-top: 10mm;
  margin-bottom: 10mm;
  margin-left: 0mm;
  margin-right: 0mm;
}

@page :first {
  margin-top: 0mm;
}

/* Poprawka dla ikon kontaktowych - wyrównanie w linii */
.panel .col div[style*="display: flex"] i,
.invoice-container .col div[style*="display: flex"] i {
  line-height: 1;
  vertical-align: middle;
  margin-right: 2px;
}

.panel .col div[style*="display: flex"] span,
.invoice-container .col div[style*="display: flex"] span {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.no-break {
  page-break-inside: avoid !important;
  break-inside: avoid !important;
}

/* Dla mniejszych ekranów pozwól na zawijanie */
@media (max-width: 768px) {
  .panel .col div[style*="display: flex"],
  .invoice-container .col div[style*="display: flex"] {
    flex-wrap: wrap;
  }
  
  .panel .col div[style*="display: flex"] span,
  .invoice-container .col div[style*="display: flex"] span {
    white-space: normal;
  }
}




@media print {
  /* UKRYJ WSZYSTKO */
  body * {
    visibility: hidden !important;
  }
  
  /* POKAŻ TYLKO FAKTURĘ I JEJ ELEMENTY */
  .invoice-container,
  .invoice-container * {
    visibility: visible !important;
  }
  
  /* USTAWIENIA DLA FAKTURY */
  .invoice-container {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 25px !important;
    box-shadow: none !important;
    background: white !important;
    border: none !important;
    border-radius: 0 !important;
  }
  
  /* USUŃ TŁO Z NAGŁÓWKA FAKTURY */
  .invoice-container header {
    border-bottom: 2px solid #3498db !important;
  }
  
  /* ZACHOWAJ KOLORY WIERSZY KOREKT */
  .diff-row, 
  .before-row, 
  .after-row {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
 
  
  .qr-container {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 25px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 15px !important;
    box-sizing: border-box !important;
	page-break-inside: avoid !important;
    break-inside: avoid !important
  }
  
  .qr-code {
    width: 180px !important;
    height: 180px !important;
    flex-shrink: 0 !important;
  }
  
  .qr-info {
    flex: 1 !important;
    max-width: none !important;
    text-align: left !important;
  }
  
   tr {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }
  
  /* Nagłówki tabel na górze strony */
  thead {
    display: table-header-group !important;
  }
  
  /* Stopki tabel na dole strony */
  tfoot {
    display: table-footer-group !important;
  }
  


  
  /* Zapobiega osieroconym nagłówkom */
  h2, h3 {
    page-break-after: avoid !important;
    break-after: avoid !important;
  }
  

  /* ZACHOWAJ CZARNY KOLOR TEKSTU */
  td, 
  th, 
  .info-item, 
  .footer-content-invoice, 
  .qr-info, 
  .qr-link a,
  .invoice-container h1,
  .invoice-container h2,
  .invoice-container .section,
  .invoice-container .col,
  .invoice-container strong,
  .invoice-container small {
    color: #000000 !important;
    background: transparent !important;
  }
  
  /* USUŃ PODKREŚLENIA Z LINKÓW */
  .qr-link a {
    text-decoration: none !important;
  }
  
  /* CZCIONKA */
  body, 
  .invoice-container, 
  .section, 
  table, 
  th, 
  td {
    font-family: Arial, sans-serif !important;
  }
  
  
  /* DODATKOWE ZABEZPIECZENIE - UKRYJ RESZTĘ */
  .main-header,
  .tabs-container,
  .main-footer,
  .upload-area,
  .file-info,
  .panel:not(.active),
  .panel.active:not(:has(.invoice-container)),
  .error-message,
  .security-badge,
  .logo-area,
  .site-title,
  .tabs,
  .tab,
  .info-card,
  .feature-list,
  .steps,
  .footer-content,
  .footer-section,
  .copyright,
  .icon:not(.invoice-container .icon) {
    display: none !important;
  }
  
  .vat-summary,
  .info-grid,
  .qr-section,
  .qr-container,
  .footer-section-invoice {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }
  
    .two-cols {
    display: flex !important;
    flex-direction: row !important;
    gap: 5px !important;
  }
  
  .col {
    flex: 1 !important;
    width: auto !important;
  }
   .vat-summary {
    width: 50% !important;
    margin-left: auto !important;
    margin-right: 0 !important;
  }
  
  .vat-summary table {
    width: 100% !important;
  }
    .info-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 5px !important;
    margin-top: 5px !important;
  }
  
  .info-item {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: baseline !important;
    gap: 4px !important;
    border: 1px solid #e0e0e0 !important;
    padding: 2px 2px 2px 5px !important;
    background: #fafafa !important;
    border-radius: 3px !important;
    page-break-inside: avoid !important; /* Zapobiega dzieleniu elementu między stronami */
  }
  
  .info-label {
    font-weight: bold !important;
    color: #2c3e50 !important;
    font-size: 10px !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
  }
  
  .info-item small {
    display: block !important;
    color: #666 !important;
    font-size: 10px !important;
    margin-top: 3px !important;
  }	
  
  .additional-info h2,
  .additional-info h3 {
    page-break-after: avoid !important;
    break-after: avoid !important;
  }
  
  table {
    page-break-inside: auto !important;
  }
  
  tr {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }
  
  .info-grid {
    page-break-inside: avoid !important;
  }
  
}

/* ===== RESPONSYWNOŚĆ ===== */
/* ===== RESPONSYWNOŚĆ ===== */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    text-align: center;
	align-items: center;        /* wyśrodkowanie w pionie */
    justify-content: center;    /* wyśrodkowanie w poziomie */
    width: 100%;
    padding: 10px 0
  }
  
  .logo-area {
    flex-direction: column;
	flex-direction: column;
    align-items: center;        /* wyśrodkowanie logo */
    width: 100%;
    margin: 0 auto;
  }
  
    .logo {
    width: 160px;               /* mniejsze logo na telefonie */
    height: 60px;
    margin: 0 auto 5px;         /* auto = wyśrodkowanie */
  }
  
    .site-title {
    width: 100%;
    text-align: center;
  }
  
  .site-title p {
    font-size: 14px;
    margin: 2px 0;
    white-space: normal;        /* pozwala na zawijanie tekstu */
  }
    .security-badge {
    width: 100%;
    justify-content: center;
    margin-top: 5px;
    padding: 8px 12px;
    white-space: normal;
    text-align: center;
    box-sizing: border-box;      /* ważne - padding nie powiększa szerokości */
  }
  
    .header-content > * {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }
  
  .tabs {
    flex-direction: column;
  }
  
  .tab {
    border-radius: 8px;
    bottom: 0;
  }
    .main-container {
    padding: 0 10px;
    margin: 0;
    max-width: 100%;
  }
  
  .panel {
    padding: 15px 10px;
    border-radius: 0 0 8px 8px;
  }
  
  .hero-section {
    padding: 10px 0;
    margin: 10px 0;
    max-width: 100%;
  }
  
  .hero-section h2 {
    font-size: 28px;
    margin-bottom: 10px;
  }
  
  .hero-text {
    font-size: 16px;
    margin-bottom: 20px;
  }
  
  /* SZERSZE WYKORZYSTANIE EKRANU */
  .section-card {
    padding: 20px 15px;
    margin: 15px 0;
    border-radius: 12px;
  }
  
  /* 2. SEKCJE "MASZ POMYSŁ?" I "COŚ NIE DZIAŁA?" - POD SOBĄ */
  .section-card > div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
    margin: 20px 0 !important;
  }
  
  /* Karty w tych sekcjach */
  .section-card > div[style*="grid-template-columns: 1fr 1fr"] > div {
    margin-bottom: 0;
    width: 100%;
  }
  
  /* 3. NIEBIESKA SEKCJA KONTAKTOWA - POPRAWA */
    div[style*="background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%)"] {
    padding: 25px 15px !important;
    margin: 20px 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* KONTENER FLEXA WEWNĄTRZ */
  div[style*="background: linear-gradient"] > div[style*="display: flex"] {
    flex-direction: column !important;
    align-items: center !important;
    gap: 20px !important;
    width: 100% !important;
  }
  
  /* LEWA KOLUMNA (koperta, napisz do nas, email) */
  div[style*="background: linear-gradient"] > div > div:first-child {
    text-align: center !important;
    min-width: auto !important;
    width: 100% !important;
  }
  
  /* PRAWA KOLUMNA (tekst i tagi) */
  div[style*="background: linear-gradient"] > div > div:last-child {
    text-align: center !important;
    min-width: auto !important;
    width: 100% !important;
  }
  
  /* TEKST "Każdy email czytamy osobiście..." */
  div[style*="background: linear-gradient"] p[style*="font-size: 16px"] {
    text-align: center !important;
    padding: 0 5px !important;
    margin-bottom: 15px !important;
    word-wrap: break-word !important;
  }
  
  /* KONTENER Z TAGAMI */
  div[style*="background: linear-gradient"] div[style*="gap: 15px"][style*="flex-wrap: wrap"] {
    justify-content: center !important;
    gap: 8px !important;
  }
  
  /* TAGI */
  div[style*="background: linear-gradient"] span[style*="background: rgba(255,255,255,0.2)"] {
    margin: 0 !important;
    padding: 6px 12px !important;
    font-size: 14px !important;
    white-space: nowrap !important;
  }
  
  /* ADRES EMAIL */
  div[style*="background: linear-gradient"] p strong {
    word-break: break-all !important; /* żeby długi email się zawijał */
  }
  
  .tag {
    margin: 0 !important;
    padding: 6px 12px !important;
    font-size: 13px !important;
    white-space: nowrap !important;   /* zapobiega zawijaniu tekstu w tagu */
  }
  
  /* DODATKOWE ZABEZPIECZENIE DLA TEKSTU W NIEBIESKIEJ SEKCJI */
   
  
    /* Główny kontener roadmap */
  div[style*="grid-template-columns: repeat(3, 1fr)"][style*="gap: 20px"] {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }
  
  /* Karty roadmap */
  div[style*="grid-template-columns: repeat(3, 1fr)"][style*="gap: 20px"] > div {
    width: 100% !important;
    margin: 0 !important;
    padding: 20px 15px !important;
    background: #f8fafc !important;
    border-radius: 16px !important;
    border: 1px solid #e0e7ef !important;
    box-sizing: border-box !important;
  }
  
  /* Wyrównanie tekstu w kartach */
  div[style*="grid-template-columns: repeat(3, 1fr)"][style*="gap: 20px"] > div,
  div[style*="grid-template-columns: repeat(3, 1fr)"][style*="gap: 20px"] > div * {
    text-align: center !important;
  }
  
  /* Nagłówek sekcji */
  h3[style*="font-size: 22px"][style*="text-align: center"] {
    font-size: 20px !important;
    margin-bottom: 20px !important;
  }
  
  /* Tytuły w kartach */
  h4[style*="margin: 0 0 10px"] {
    font-size: 18px !important;
    margin-bottom: 8px !important;
  }
  
  /* Opisy w kartach */
  p[style*="color: #7f8c8d"][style*="font-size: 14px"] {
    font-size: 13px !important;
    line-height: 1.5 !important;
  }
  
  /* Usunięcie białego tła z drugiej karty (jeśli miała inne tło) */
  div[style*="background: #f8fafc"] {
    background: #f8fafc !important; /* zostawiamy, ale ujednolicamy */
  }
  
  /* Opcjonalnie: dostosowanie ikon */
  div[style*="width: 40px"][style*="height: 40px"] {
    width: 48px !important;
    height: 48px !important;
    font-size: 20px !important;
    margin-bottom: 12px !important;
  }
  
  /* Statystyki */
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    margin: 20px 0;
  }
  
  .stat-item {
    padding: 10px;
  }
  
  /* Menu sekcji (przyciski nawigacyjne) */
  .section-menu {
    flex-direction: column;
    gap: 8px;
    margin: 15px 0;
  }
  
  .section-btn {
    width: 100%;
    text-align: center;
    padding: 12px;
    font-size: 15px;
  }
  
  /* CTA boxy */
  .cta-box, .cta-box2 {
    padding: 15px 25px;
    font-size: 16px;
    width: 100%;
    justify-content: center;
    margin-bottom: 15px;
  }
  
  .cta-box {
    margin-bottom: 10px;
  }
  
  /* Feature mini */
  .features-mini {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .feature-mini {
    font-size: 14px;
    white-space: nowrap;
  }
  
  /* Benefit items */
  .benefit-item {
    flex-direction: column;
    text-align: center;
    padding: 15px;
  }
  
  .benefit-icon {
    margin-bottom: 10px;
  }
  
  .benefit-content h3 {
    font-size: 18px;
  }
  
  .benefit-content p {
    font-size: 14px;
  }
  
  /* Przykładowe bloki (background) */
  .benefit-item div[style*="background"] {
    font-size: 11px;
    padding: 6px !important;
    margin-top: 8px !important;
  }
  
  /* Kontakt w sekcji rozwoju */
  .contact-card {
    flex-direction: column;
    padding: 20px !important;
    text-align: center;
  }
  
  .contact-card h3 {
    font-size: 20px;
  }
  
  /* Tag cloud */
  .tag-cloud {
    gap: 8px;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
  }
  
  .invoice-container {
    width: 100%;
    padding: 15px;
  }
  
  /* Style dla linków w płatności */
 /* 1. UKRYCIE PODGLĄDU HTML FAKTURY */
  .invoice-container {
    display: none !important;
  }
  
  @media print {
    .invoice-container {
      display: block !important;
    }
  }
  
  /* 2. UKRYCIE PRZYCISKU DRUKUJ (zostawiamy tylko PDF) */
  .file-actions .action-btn:first-child {
    display: none !important;
  }
  
  /* 3. ZMNIEJSZENIE NAZWY PLIKU */
  
    .file-info {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .file-name {
    width: 100%;
    max-width: 100%;
    font-size: 12px;
    justify-content: center;
    padding: 5px 0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 5px;
	text-align: center; 
	
	.file-name i {
  margin-right: 5px;          /* odstęp ikony od tekstu */
}
  
  
    .file-name span {
    max-width: calc(100vw - 100px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
	display: inline-block;
  }
  
    .file-actions {
    width: 100%;
    justify-content: center;    /* wyśrodkowanie przycisków */
	gap: 10px; 
  }
  
    .action-btn i {
	padding: 8px 20px;
    font-size: 14px;
  }
  
  /* 6. NOWA FAKTURA PRZYCISK - TAKI SAM ROZMIAR */
  #newInvoiceBtn {
    padding: 8px 20px;
    font-size: 14px;
  }
  
  /* 7. KOMUNIKAT O PODGLĄDZIE - SPÓJNY */
  .file-info .mobile-message {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 8px 12px;
    font-size: 13px;
    color: #e67e22;
    background: #fef5e7;
    border-radius: 6px;
    text-align: center;
    border-left: 3px solid #e67e22;
	box-sizing: border-box; 
  }
  
  
  
  
  /* 5. DOSTOSOWANIE OBSZARU WCZYTYWANIA */
  .upload-area {
    padding: 20px 15px;
  }
  
  .upload-area i {
    font-size: 36px;
  }
  
  .upload-area h3 {
    font-size: 18px;
  }
  
  .upload-area p {
    font-size: 13px;	
  }
  
  .upload-btn {
    padding: 10px 20px;
    font-size: 14px;
  }
  
 
  
  /* 7. NOWA FAKTURA PRZYCISK */
  #newInvoiceBtn {
    padding: 6px 10px;
    font-size: 12px;
  }
  
  }
/* 2a. Przyciski Pobierz/Pokaż przy przykładach - pod spodem na mobile */
@media (max-width: 768px) {
  .sample-item {
    flex-wrap: wrap;
  }
  .sample-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

/* 2b. Ukryj przełączniki i ikony info na mobile */
@media (max-width: 768px) {
  .view-toggle-label,
  .view-toggle-info {
    display: none !important;
  }
}

/* 6. Możesz jeszcze zmniejszyć padding w CTA na telefonie */
@media (max-width: 480px) {	

  .hero-section h2 {
    font-size: 24px;
  }
  
  .hero-text {
    font-size: 15px;
  }
  
  .section-card h2 {
    font-size: 22px;
  }
  
  .section-subtitle {
    font-size: 16px;
  }
  
  .feature-card {
    padding: 15px;
  }
  
  .feature-card h3 {
    font-size: 18px;
  }
  
  .stat-number {
    font-size: 36px;
  }
  .cta-box, .cta-box2 {
    padding: 15px 20px;
    font-size: 16px;
    width: 100%;
    justify-content: center;
  }
  
    .file-name {
    max-width: 130px;
    font-size: 12px;
  }
  
  .file-name span {
    max-width: 100px;
  }
  
  .file-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  
  .action-btn, #newInvoiceBtn {
    padding: 5px 8px;
    font-size: 11px;
  }
  
  .file-info::after {
    font-size: 10px;
    padding: 4px 8px;
  }
  
  .security-badge {
    font-size: 12px;
    padding: 8px 12px;
  }
}

} /* zamknięcie @media (max-width: 768px) z linii 1876 — brakowało tego nawiasu */

/* ===== PANEL BATCH PDF ===== */
.batch-toolbar {
  display: flex;
  gap: 12px;
  align-items: stretch;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 20px;
  background: #f8fafc;
  border-radius: 14px;
  border: 1px solid #e0e7ef;
}

.batch-toolbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
  white-space: nowrap;
  text-decoration: none;
}

.batch-toolbar-btn:active {
  transform: scale(0.97);
}

.batch-toolbar-btn-add {
  background: #3498db;
  color: white;
}

.batch-toolbar-btn-add:hover {
  background: #2980b9;
  box-shadow: 0 3px 10px rgba(52,152,219,0.35);
}

.batch-toolbar-btn-all {
  background: white;
  color: #7A0505;
  border: 1.5px solid #7A0505;
}

.batch-toolbar-btn-all:hover {
  background: #7A0505;
  color: white;
  box-shadow: 0 3px 10px rgba(122,5,5,0.25);
}

.batch-toolbar-btn-clear {
  background: white;
  color: #7f8c8d;
  border: 1px solid #cbd5e0;
}

.batch-toolbar-btn-clear:hover {
  background: #fff0f0;
  color: #e74c3c;
  border-color: #e74c3c;
}

.batch-count {
  margin-left: auto;
  align-self: center;
  font-size: 14px;
  font-weight: 600;
  color: #5d6d7e;
  background: white;
  border: 1px solid #e0e7ef;
  border-radius: 20px;
  padding: 6px 16px;
}

/* Tabela */
.batch-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid #e0e7ef;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.batch-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.batch-table thead tr {
  background: #f0f4f8;
}

.batch-table th {
  color: #5d6d7e;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid #e0e7ef;
  white-space: nowrap;
}

.batch-table td {
  padding: 13px 16px;
  border-bottom: 1px solid #f0f4f8;
  vertical-align: middle;
  color: #2c3e50;
}

.batch-table tbody tr:last-child td {
  border-bottom: none;
}

.batch-table tbody tr:hover td {
  background: #fafcff;
}

.batch-table tbody tr.batch-done td {
  color: #7f8c8d;
}

.batch-nr {
  font-weight: 600;
  color: #2c3e50;
}

.batch-status-pending {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #95a5a6;
  font-size: 13px;
}

.batch-status-done {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #27ae60;
  font-weight: 600;
  font-size: 13px;
  background: #e8f8f0;
  padding: 3px 10px;
  border-radius: 20px;
}

.batch-btn-pdf {
  background: white;
  border: 1.5px solid #7A0505;
  color: #7A0505;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.batch-btn-pdf:hover {
  background: #7A0505;
  color: white;
  box-shadow: 0 2px 8px rgba(122,5,5,0.25);
}

.batch-btn-remove {
  background: transparent;
  border: 1px solid #e0e7ef;
  color: #b0bec5;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.batch-btn-remove:hover {
  background: #fff0f0;
  color: #e74c3c;
  border-color: #e74c3c;
}

.batch-empty {
  text-align: center;
  padding: 60px 20px;
  color: #b0bec5;
  font-size: 15px;
}

/* Modal potwierdzenia */
.batch-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 3000;
  align-items: center;
  justify-content: center;
}

.batch-modal-overlay.active {
  display: flex;
}

.batch-modal {
  background: white;
  border-radius: 16px;
  padding: 36px 40px;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  text-align: center;
}

.batch-modal-icon {
  font-size: 44px;
  margin-bottom: 16px;
  color: #e67e22;
}

.batch-modal h3 {
  font-size: 20px;
  color: #2c3e50;
  margin: 0 0 10px;
}

.batch-modal p {
  font-size: 15px;
  color: #5d6d7e;
  margin: 0 0 28px;
  line-height: 1.6;
}

.batch-modal-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.batch-modal-confirm {
  background: #7A0505;
  color: white;
  border: none;
  padding: 11px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.batch-modal-confirm:hover { background: #5e0404; }

.batch-modal-cancel {
  background: white;
  color: #7f8c8d;
  border: 1px solid #cbd5e0;
  padding: 11px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.batch-modal-cancel:hover { background: #f8fafc; }

@media (max-width: 768px) {
  .batch-table th:nth-child(2),
  .batch-table td:nth-child(2) { display: none; }
  .batch-count { margin-left: 0; width: 100%; justify-content: center; }
  .batch-toolbar { padding: 14px; }

  /* Ukryj zakładkę i panel "Wiele faktur" na mobile */
  .tab[data-tab="batch"] { display: none; }
  #panel-batch { display: none !important; }
}
