/* General Styles */
html {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  font-size: 13px;
  background-color: #f1f6f9;
  color: #78787a;
  margin: 20px;
  padding: 0;
}

/* Typography */
.h1, h1 {
  font-size: 1em !important;
  text-decoration: underline;
  color: #333;
}

.u {
  text-decoration: underline;
}

/* Input Fields */
input {
  padding: 10px;
  font-size: 16px;
  width: 300px;
}

/* Containers */
.serial_no_container,
.title-container {
  text-align: center;
}

.title-container {
  max-width: 90%;
  margin: 0 auto;
}

.btn-container {
  display: flex;
  justify-content: right;
  flex-wrap: wrap;
  margin-top: 20px;
}

.btn-container button {
  margin-right: 10px;
  margin-bottom: 10px;
}

/* Buttons */
.btn-success {
  background-color: #4cd137;
  border-color: #4cd137;
  /*width: 100%; /* Full-width on small screens */
}

/* Forms */
.autocomplete_table .form-control {
  border-color: #fff;
  height: auto !important;
  max-height: 150px !important;
  object-fit: contain !important;
}

/* Tables */
.table {
  width: 100%;
  border-collapse: collapse;
}

.table td,
.table th {
  padding: 2px !important;
  vertical-align: middle;
  border-top: 1px solid #dee2e6;
}

.table th {
  background-color: #f8f9fa;
}

/* Responsive Table */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Autocomplete */
.ui-autocomplete {
    max-height: 300px; /* Ograniczenie wysokości listy */
    overflow-y: auto;  /* Włączenie przewijania w pionie */
    overflow-x: hidden; /* Ukrycie przewijania w poziomie */
    z-index: 1050; /* Zapewnia, że lista nie będzie schowana pod innymi elementami */
}

.ui-widget.ui-widget-content {
  font-family: inherit;
}

/* Images */
.delete_row img {
  width: 30px;
  height: 30px;
  cursor: pointer;
}

.gallery-img {
  max-width: 90px;
  max-height: 90px;
  cursor: pointer;
}

.modal-img {
  max-width: 100%;
}

.square-crop {
  overflow: hidden;
  position: relative;
  background-color: white;
}

.square-crop img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  object-position: center;
}

.img-fluid {
  max-height: 500px !important;
}

/* FontAwesome */
.fa-3x {
  font-size: 1em !important;
}


        .large-thumbnail-container {
            width: 200px;
            height: 200px;
            overflow: hidden;
            margin-right: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: #fff;
            border: 1px solid #ddd;
            cursor: pointer;
        }
        .large-thumbnail {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
        }
        .product-name {
            font-weight: bold;
        }
        .table-container {
            display: flex;
            align-items: flex-start;
        }
        .modal-fullscreen {
            max-width: 100%;
            margin: 0;
        }
        .modal-fullscreen .modal-content {
            height: 100vh;
        }
        .modal-fullscreen .modal-body {
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .modal-fullscreen img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
        }



/* Responsive Styles */
@media (max-width: 1250px) {
  .table-responsive {
    margin: 0;
    padding: 0;
  }

  .table td, .table th {
    font-size: 0.9rem !important;
  }

  .container {
    max-width: 98%;
    padding: 0 !important;
    font-size: 0.6rem;
  }

  .delete_row img {
    width: 18px;
  }
}

@media (max-width: 768px) {
  .table td, .table th {
    font-size: 0.9rem !important;
  }
}


