/* Style dla generatora przelewu */

/* Poprawka dla strzałek walidacyjnych */
.form-control,
.form-select {
  padding-right: 2.5rem; /* Większy padding po prawej dla miejsca na ikonę walidacji */
}

/* Zapewniamy odpowiednią szerokość pól w jednej linii */
@media (min-width: 768px) {
  #data_wystawienia,
  #termin_platnosci {
    min-width: 140px; /* Minimalna szerokość dla pól daty */
  }

  #kwota {
    min-width: 120px; /* Szerokość dla pola kwoty */
  }

  #waluta {
    min-width: 100px; /* Szerokość dla pola waluty */
  }
}

/* Poprawne wyświetlanie komunikatów walidacyjnych */
.invalid-feedback,
.form-text {
  display: block;
  clear: both;
  width: 100%;
}

/* Ukryj komunikaty błędów, dopóki formularz nie zostanie oznaczony jako was-validated */
form:not(.was-validated) .invalid-feedback {
  display: none;
}

/* Ukryj ikonę walidacji, dopóki formularz nie zostanie oznaczony jako was-validated */
form:not(.was-validated) .form-control:valid,
form:not(.was-validated) .form-control:invalid,
form:not(.was-validated) .form-select:valid,
form:not(.was-validated) .form-select:invalid {
  background-image: none;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: #f8f9fa;
  padding: 20px;
  padding-bottom: 50px; /* Dodatkowy padding na dole strony */
}

/* Style dla kontenera o większej szerokości */
.container-wide {
  max-width: 20000px !important;
  width: 100%;
  padding-right: var(--bs-gutter-x, 0.75rem);
  padding-left: var(--bs-gutter-x, 0.75rem);
  margin-right: auto;
  margin-left: auto;
}

/* Dodatkowe style do pełnego dostosowania szerokości */
@media (min-width: 1200px) {
  .container-wide {
    max-width: 100% !important;
  }
  
  .row-wide {
    width: 100%;
    max-width: 100%;
  }
}

/* Style dla Angular-podobnego datepickera */
.date-container {
  display: flex;
  align-items: center;
}

.datepicker-input {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' class='bi bi-calendar' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4H1z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

/* Styl dla flatpickr */
.flatpickr-calendar {
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
}

.flatpickr-day.selected {
  background: #0d6efd;
  border-color: #0d6efd;
}

.header {
  height: 40px;
  text-align: center;
}

.tekst_header {
  vertical-align: middle;
  line-height: 40px;
}

.content {
  width: 100%;
  max-width: 800px;
  margin: auto;
  display: block;
  background-color: #fff;
  border-radius: 0.375rem;
  padding: 1.5rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.logo {
  text-align: center;
  margin-bottom: 1.5rem;
}

.centerButton {
  text-align: center;
  margin-bottom: 1.5rem;
}

.przycisk {
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.375rem;
  color: white;
  background-color: #0d6efd;
  border: none;
  width: auto;
  min-width: 200px;
  cursor: pointer;
  transition: background-color 0.15s ease-in-out;
}

.przycisk:hover {
  background-color: #0b5ed7;
}

/* Tabele w dokumencie przelewu */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

table tr td {
  border: 1px solid #dee2e6;
  padding: 0.75rem;
}

.polecenie_przelewu_head {
  text-align: center;
  padding: 0.75rem;
  border: 1px solid #dee2e6;
  background-color: #f8f9fa;
  font-weight: bold;
  width: 100%;
}

/* Klasy dla kolumn tabeli */
.polecenie_przelewu_kol10 { width: 10%; }
.polecenie_przelewu_kol15 { width: 15%; }
.polecenie_przelewu_kol20 { width: 20%; }
.polecenie_przelewu_kol25 { width: 25%; }
.polecenie_przelewu_kol30 { width: 30%; }
.polecenie_przelewu_kol333 { width: 33.333333%; }
.polecenie_przelewu_kol35 { width: 35%; }
.polecenie_przelewu_kol45 { width: 45%; }
.polecenie_przelewu_kol55 { width: 55%; }
.polecenie_przelewu_kol60 { width: 60%; }
.polecenie_przelewu_kol70 { width: 70%; }
.polecenie_przelewu_kol75 { width: 75%; }
.polecenie_przelewu_kol80 { width: 80%; }

.polecenie_przelewu_kol10, .polecenie_przelewu_kol15, .polecenie_przelewu_kol20,
.polecenie_przelewu_kol25, .polecenie_przelewu_kol30, .polecenie_przelewu_kol333,
.polecenie_przelewu_kol35, .polecenie_przelewu_kol45, .polecenie_przelewu_kol55,
.polecenie_przelewu_kol60, .polecenie_przelewu_kol70, .polecenie_przelewu_kol75,
.polecenie_przelewu_kol80 {
  text-align: left;
  padding: 0.75rem;
  border: 1px solid #dee2e6;
}

.width_auto {
  width: auto;
}

/* Responsywny wydruk */
@media print {
  body {
    padding: 0;
    margin: 0;
    background-color: #fff;
    font-size: 12pt;
  }
  
  .content {
    box-shadow: none;
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0 auto;
    page-break-inside: avoid;
  }
  
  .centerButton, .przycisk {
    display: none;
  }

  table {
    width: 100%;
    border-collapse: collapse;
    page-break-inside: avoid;
  }

  table tr td {
    border: 1px solid #000;
  }
  
  br {
    display: block;
    content: "";
    margin-top: 5mm;
  }

  /* Ustawienia strony */
  @page {
    size: A4 portrait;
    margin: 15mm 10mm;
  }
}