/* Nova Voyages — admin polish on top of Unfold.
   Targets only legibility / clickability issues:
   action buttons, pagination, and the dual-list multi-select widget. */

/* --- Action buttons (e.g. "Importer depuis un PDF" in object-tools) --- */
.object-tools a,
.object-tools a.button,
ul.object-tools a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  padding: 0.55rem 1rem !important;
  border-radius: 9999px !important;
  background-color: rgb(228 95 16) !important;
  color: #fff !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  line-height: 1 !important;
  text-transform: none !important;
  letter-spacing: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  transition: background-color .15s ease, transform .12s ease;
}
.object-tools a:hover,
.object-tools a.button:hover,
ul.object-tools a:hover {
  background-color: rgb(200 78 12) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

/* --- Pagination ("1 2 3 ... 12") --- */
.paginator,
.paginator-info {
  font-size: 0.875rem;
  color: rgb(82 82 82);
}
.paginator > * {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  margin: 0 0.125rem;
  padding: 0 0.6rem !important;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: background-color .12s ease;
}
.paginator a:hover {
  background-color: rgb(254 244 235);
  color: rgb(200 78 12) !important;
}
.paginator .this-page {
  background-color: rgb(228 95 16);
  color: #fff !important;
}

/* --- Multi-select dual list widget (groups, user_permissions) ---
   Make boxes tall enough to actually scan, give the helper buttons
   a real button shape, and ensure both columns have equal weight. */
.selector {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.75rem;
}
.selector-available,
.selector-chosen {
  min-width: 0;
}
.selector select {
  width: 100% !important;
  min-height: 14rem !important;
  border-radius: 0.5rem !important;
  border: 1px solid rgb(229 229 229) !important;
  padding: 0.4rem !important;
  font-size: 0.875rem !important;
  line-height: 1.4 !important;
}
.selector h2 {
  background: rgb(254 244 235) !important;
  color: rgb(28 28 46) !important;
  font-weight: 700 !important;
  font-size: 0.875rem !important;
  padding: 0.5rem 0.75rem !important;
  border-radius: 0.5rem 0.5rem 0 0 !important;
  margin-bottom: 0 !important;
}
.selector .selector-chooser {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  align-self: center;
}
.selector .selector-chooser a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 2.25rem !important;
  height: 2.25rem !important;
  padding: 0 !important;
  border-radius: 9999px !important;
  background-color: rgb(245 245 245) !important;
  color: rgb(64 64 64) !important;
  font-weight: 700 !important;
  border: 1px solid rgb(229 229 229) !important;
  transition: background-color .12s ease;
}
.selector .selector-chooser a:hover {
  background-color: rgb(254 244 235) !important;
  color: rgb(200 78 12) !important;
  border-color: rgb(248 178 124) !important;
}
.selector-filter input {
  width: 100% !important;
  border-radius: 0.5rem !important;
  border: 1px solid rgb(229 229 229) !important;
  padding: 0.5rem 0.75rem !important;
  font-size: 0.875rem !important;
}
.selector .selector-filter {
  padding: 0.5rem !important;
  background: rgb(250 250 250);
  border-left: 1px solid rgb(229 229 229);
  border-right: 1px solid rgb(229 229 229);
}
.selector ul.selector-chooseall,
.selector ul.selector-clearall {
  margin-top: 0.5rem;
}
.selector a.selector-chooseall,
.selector a.selector-clearall {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgb(228 95 16) !important;
  border-radius: 0.375rem;
  text-decoration: none;
}
.selector a.selector-chooseall:hover,
.selector a.selector-clearall:hover {
  background-color: rgb(254 244 235);
}

/* On small screens, stack the dual list vertically. */
@media (max-width: 768px) {
  .selector {
    grid-template-columns: 1fr;
  }
  .selector .selector-chooser {
    flex-direction: row;
    justify-content: center;
  }
}

/* --- Make the changelist's empty-row "no results" feel less harsh --- */
.no-results {
  text-align: center;
  padding: 2rem !important;
  color: rgb(115 115 115) !important;
}
