:root {
  --tblr-primary: #005091;
  --tblr-body-font-size: 1rem;
  --tblr-nav-link-font-size: 0.8rem;
  --tblr-page-padding-y: 0.5rem; }

[data-bs-theme="dark"] {
  --tblr-primary: #a8a8a8;
  --tblr-primary-rgb: 168, 168, 168;
  --tblr-link-color: #ffffff;
  --tblr-nav-link-color: #ffffff;
  --tblr-muted: #ffffff;
  --tblr-secondary-rgb: 168, 168, 168; }

.icon-xlg .icon {
  width: 5rem;
  height: 5rem;
  font-size: 5rem; }

small,
.small {
  font-size: 70%; }

::selection {
  color: white;
  background-color: #005091; }

.btn-group-sm > .btn,
.btn-sm {
  --tblr-btn-line-height: 1.5;
  --tblr-btn-icon-size: 1rem; }

.btn {
  --tblr-btn-icon-size: 1.5rem; }

.icon {
  --tblr-icon-size: 1.5rem;
  width: var(--tblr-icon-size);
  height: var(--tblr-icon-size);
  font-size: var(--tblr-icon-size);
  vertical-align: bottom;
  stroke-width: 1.5; }

a .icon {
  cursor: pointer; }

.page-pretitle {
  color: #ee7407;
  font-weight: var(--tblr-font-weight-bold); }

.navbar-nav {
  --tblr-navbar-nav-link-padding-x: 0.5rem; }

.datagrid {
  --tblr-datagrid-padding: 1rem;
  --tblr-datagrid-item-width: 10rem; }
  .datagrid .datagrid-title {
    color: #ee7407;
    font-weight: var(--tblr-font-weight-bold); }

/* Active navigation color */
.nav-item.active .nav-link,
.nav-item.active .nav-link-icon .icon {
  color: #ee7407; }

@media (min-width: 768px) {
  .navbar-expand-md .nav-item.active .nav-link {
    color: #ee7407; } }

.htmx-indicator {
  opacity: 0;
  transition: opacity 500ms ease-in; }

.htmx-request .htmx-indicator {
  opacity: 1; }

.htmx-request.htmx-indicator {
  opacity: 1; }

.wait-cursor {
  cursor: wait; }

#page-loading {
  display: block;
  left: 50%;
  top: 50%;
  position: fixed;
  z-index: 9999;
  transform: translate(-50%, -50%); }

/* Select2 */
.select2-container .select2-selection--single {
  min-height: 2.5rem; }

.item-list label {
  display: none; }

.item-list-table td.number {
  min-width: 40px; }

.item-list-table td.name {
  min-width: 300px; }

.item-list-table td.quantity {
  min-width: 100px; }

.item-list-table td.price {
  min-width: 140px; }

.item-list-table td.discount {
  min-width: 100px; }

.item-list-table td.comment {
  min-width: 200px; }

.item-list-table td.action {
  min-width: 60px; }

@media screen and (max-width: 576px) {
  .table-responsive-stack {
    border: 0; }
  .table-responsive-stack thead {
    border: none;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px; }
  .table-responsive-stack tr {
    border-bottom: 3px solid #ddd;
    display: block;
    margin-bottom: 0.625em; }
  .table-responsive-stack td {
    border-bottom: 1px solid #ddd;
    display: block;
    text-align: right;
    min-height: 45px; }
  .table-responsive-stack td::before {
    content: attr(data-label);
    float: left;
    font-weight: bold;
    text-transform: uppercase; }
  .table-responsive-stack td:last-child {
    border-bottom: 0; } }

/* Form styles */
.form-control.readonly,
.form-control:read-only {
  color: var(--tblr-body-color);
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  background-color: var(--tblr-bg-surface-secondary);
  opacity: 1; }

input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  height: 24px;
  width: 24px;
  margin-left: 0.4em;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23777'><path d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/></svg>");
  cursor: pointer; }

/* Item List */
.avatar--big {
  width: 80px;
  height: 80px; }

.avatar-placeholder {
  background-color: #e9ecef;
  background-image: none; }

.select2-item-image {
  width: 60px;
  height: auto;
  max-width: 60px !important; }

.select2-item-placeholder {
  width: 60px;
  height: 60px;
  background-color: #fff;
  max-width: 60px !important; }

.select2-container {
  width: 100% !important; }

/* Team flags */
.team-flag .flag {
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  margin: 0; }

.team-flag:hover {
  text-decoration: none; }

/* item list */
.es-item-list-table {
  max-width: 250px; }

/* navbar */
.team-flag {
  height: 1rem; }

/* navbar basket */
@keyframes pulse {
  0% {
    transform: translate(50%, -50%) scale(1); }
  50% {
    transform: translate(50%, -50%) scale(1.4); }
  100% {
    transform: translate(50%, -50%) scale(1); } }

.basket-updated .badge {
  animation: pulse 0.6s ease-in-out; }

.favorites-updated .badge {
  animation: pulse 0.6s ease-in-out; }

.report_agents__agent_col {
  min-width: 200px; }

.item-list-table td.favorites__action {
  min-width: 100px; }

.drag-handle {
  cursor: move; }

.dropdown-menu {
  overflow: hidden;
  overflow-y: auto;
  max-height: calc(100vh - 150px); }

@media (min-width: 768px) {
  .dropdown-menu-md-end {
    right: 0 !important;
    left: auto !important; } }

.icon-tabler-chevron-right {
  transition: transform 0.2s ease; }

/* rotate when collapse is open */
[aria-expanded="true"] .icon-tabler-chevron-right {
  transform: rotate(90deg); }

.card iframe {
  width: 100%;
  height: 100%;
  border: 0;
  flex-grow: 1; }
