 
/* Style The Dropdown Button */
.dropbtn {
  background-color: #4CAF50;
  color: white;
  padding: 16px;
  font-size: 16px;
  border: none;
  cursor: pointer;
}

/* The container <div> - needed to position the dropdown content */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

/* Links inside the dropdown */
.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {background-color: #f1f1f1}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

/* Change the background color of the dropdown button when the dropdown content is shown */
.dropdown:hover .dropbtn {
  background-color: #3e8e41;
} 

.login-logo {
  max-width: 320px;
  margin: 18px auto 12px auto;
}

input[type="date"].form-control {
  width: 100%;
  min-width: 0;
}

.popis-controls {
  margin-top: 10px;
}

.popis-control-cell {
  margin-bottom: 14px;
  padding-left: 10px;
  padding-right: 10px;
}

.popis-control-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #555;
}

.popis-badge-wrap {
  min-height: 34px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

@media (max-width: 767px) {
  input[type="date"].popis-date {
    min-height: 44px;
    font-size: 16px;
  }
}

@media (min-width: 768px) {
  .popis-control-cell {
    margin-bottom: 10px;
  }
}

.magacin-toolbar {
  margin-top: 12px;
}

.magacin-toolbar-cell {
  padding: 10px 12px;
  margin-bottom: 4px;
}

.magacin-toolbar-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #555;
}

.magacin-toolbar-input,
.magacin-toolbar-btn {
  width: 100%;
}

.magacin-toolbar-btn {
  margin-top: 0;
}

.magacin-loading-bar {
  display: none;
  margin: 4px 12px 0;
  padding: 10px 14px;
  background: #d9edf7;
  border: 1px solid #bce8f1;
  border-radius: 4px;
  color: #31708f;
  font-size: 14px;
}

.magacin-loading-bar--active {
  display: block;
}

.magacin-table-placeholder {
  padding: 28px 16px;
  text-align: center;
  color: #555;
}

.magacin-spinner-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.magacin-spinner {
  animation: magacin-spin 0.85s linear infinite;
}

@keyframes magacin-spin {
  to {
    transform: rotate(360deg);
  }
}

.tabela-scroll-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tabela {
  width: 100%;
  table-layout: fixed;
}

.tabela th,
.tabela td {
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.tabela td input.form-control {
  width: 100%;
  min-width: 80px;
}

.tabela td:nth-child(2),
.tabela th:nth-child(2) {
  white-space: normal;
}

@media (max-width: 767px) {
  body {
    padding-bottom: 62px;
  }

  .tabela {
    table-layout: auto;
  }

  .tabela th,
  .tabela td {
    overflow: visible;
    text-overflow: clip;
  }

  .tabela td:nth-child(2),
  .tabela th:nth-child(2) {
    min-width: 140px;
    white-space: normal;
    word-break: break-word;
  }

  .tabela td:not(:nth-child(2)),
  .tabela th:not(:nth-child(2)) {
    min-width: 80px;
  }
}

.popis-search-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 500;
  padding: 8px;
  background: #fff;
  border-top: 1px solid #ddd;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.12);
}

.popis-search-input {
  display: block;
  width: 100%;
  padding: 8px 12px;
  font-size: 16px;
  line-height: 1.4;
  border: 1px solid #ccc;
  border-radius: 4px;
  outline: none;
  box-sizing: border-box;
}

.popis-search-input:focus {
  border-color: #66afe9;
  box-shadow: 0 0 0 3px rgba(102, 175, 233, 0.35);
}

.popis-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 2px 0;
}

.popis-badge {
  display: inline-block;
  padding: 3px 8px;
  background: #337ab7;
  color: #fff;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.password-toggle-addon {
  padding: 6px 10px;
  vertical-align: middle;
}

.password-toggle-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.password-toggle-label {
  margin: 0;
  font-weight: normal;
  cursor: pointer;
  user-select: none;
}

.typeahead {
  position: relative;
}

.typeahead-menu {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  z-index: 3000;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  max-height: 260px;
  overflow: auto;
}

.typeahead-item {
  padding: 8px 10px;
  cursor: pointer;
}

.typeahead-item.active,
.typeahead-item:hover {
  background: #337ab7;
  color: #fff;
}