/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

summary { cursor: pointer; }
summary::-webkit-details-marker { color: #3273dc; }

.container.app-view {
  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}

table {
  th, td {
    white-space: nowrap;
  }
}

/* Tom Select - Bulma Theme */
.ts-hidden-accessible {
  position: absolute !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  height: 1px !important;
  width: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
}

.ts-wrapper {
  min-height: 2.5em;
  display: flex;
  position: relative;
}

.ts-wrapper.single .ts-control {
  background: #fff;
}

.ts-wrapper.single,
.ts-wrapper.single .ts-control {
  cursor: pointer;
}

.ts-control {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  border: 1px solid #dbdbdb;
  border-radius: 4px;
  padding: calc(0.5em - 1px) calc(0.75em - 1px);
  background: #fff;
  color: #363636;
  font-size: 1em;
  box-shadow: inset 0 0.0625em 0.125em rgba(10, 10, 10, 0.05);
  width: 100%;
}

.ts-wrapper.has-items .ts-control {
  padding: calc(0.375em - 1px) calc(0.75em - 1px);
}

.ts-wrapper.focus .ts-control {
  border-color: #3273dc;
  box-shadow: 0 0 0 0.125em rgba(50, 115, 220, 0.25);
}

.ts-wrapper.disabled .ts-control {
  background-color: #f5f5f5;
  border-color: #f5f5f5;
  color: #7a7a7a;
  cursor: not-allowed;
}

.ts-control > input {
  flex: 1 1 auto;
  min-width: 7rem;
  font-size: 1em !important;
  line-height: 1.5 !important;
  color: #363636;
  border: none;
  outline: none;
  box-shadow: none;
}

.ts-control > input::placeholder {
  color: #b5b5b5;
}

/* Multi-select tags (Bulma tag style) */
.ts-wrapper.multi .ts-control [data-value] {
  background: #3273dc;
  background-image: none;
  border: none;
  border-radius: 4px;
  box-shadow: none;
  color: #fff;
  font-size: 0.875em;
  padding: 0.25em 0.5em;
  margin: 2px 3px 2px 0;
  text-shadow: none;
  display: inline-flex;
  align-items: center;
}

.ts-wrapper.multi .ts-control [data-value].active {
  background: #2366d1;
}

.ts-wrapper.multi.disabled .ts-control [data-value] {
  background: #b5b5b5;
  color: #fff;
}

/* Remove button on tags */
.ts-wrapper.plugin-remove_button .item .remove {
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 1em;
  line-height: 1;
  padding: 0 0 0 0.375em;
  margin-left: 0.25em;
  align-self: center;
}

.ts-wrapper.plugin-remove_button .item .remove:hover {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 0 4px 4px 0;
}

/* Clear button */
.plugin-clear_button .clear-button {
  flex-shrink: 0;
  align-self: center;
  color: #b5b5b5;
  font-size: 1.25em;
  line-height: 1;
  padding: 0 0.5em;
}

.plugin-clear_button .clear-button:hover {
  color: #363636;
}

/* Dropdown */
.ts-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  z-index: 10;
  background: #fff;
  border: 1px solid #dbdbdb;
  border-radius: 4px;
  box-shadow: 0 0.5em 1em -0.125em rgba(10, 10, 10, 0.1), 0 0 0 1px rgba(10, 10, 10, 0.02);
  margin-top: 4px;
  color: #363636;
  font-size: 1em;
}

.ts-dropdown .option {
  padding: 0.5em 0.75em;
  cursor: pointer;
}

.ts-dropdown .option:hover,
.ts-dropdown .option.active {
  background: #f5f5f5;
  color: #363636;
}

.ts-dropdown .option.selected {
  background: #3273dc;
  color: #fff;
}

.ts-dropdown .optgroup-header {
  background: #fafafa;
  color: #7a7a7a;
  font-size: 0.75em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5em 0.75em;
  border-bottom: 1px solid #f5f5f5;
}

.ts-dropdown .optgroup {
  border-top: 1px solid #f5f5f5;
}

.ts-dropdown .optgroup:first-child {
  border-top: none;
}

.ts-dropdown-content {
  max-height: 200px;
  overflow-y: auto;
}

/* No results */
.ts-dropdown .no-results {
  color: #7a7a7a;
  padding: 0.5em 0.75em;
}

/* Loading spinner */
.ts-dropdown .spinner::after {
  border-color: #3273dc transparent transparent;
}

/* Caret for single select */
.ts-wrapper.single .ts-control::after {
  border-color: #7a7a7a transparent transparent;
  border-style: solid;
  border-width: 5px 5px 0;
  content: " ";
  display: block;
  height: 0;
  margin-top: -2.5px;
  position: absolute;
  right: 12px;
  top: 50%;
  width: 0;
}

.ts-wrapper.single.dropdown-active .ts-control::after {
  border-color: transparent transparent #7a7a7a;
  border-width: 0 5px 5px;
}
