/* Vue Utils CSS */
/* General Styles */
/* SIMPLE SELECT COMPONENT */
.simple-select {
  position: relative;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  user-select: none;
  outline: none;
  display: inline-block; /* para que se ajuste al contenido si width auto */
  min-width: 150px; /* ancho mínimo para que no quede muy pequeño */
}

.simple-select .select-display {
  border: 1px solid #ccc;
  background: #fff;
  padding: 6px 30px 6px 10px;
  cursor: pointer;
  position: relative;
  border-radius: 4px;
  width: 100%;
  box-sizing: border-box;
}

.simple-select .select-dropdown {
  position: absolute;
  background: white;
  border: 1px solid #ccc;
  border-top: none;
  max-height: 200px;
  overflow: hidden;
  z-index: 1000;
  border-radius: 0 0 4px 4px;
  width: 100%;
  min-width: 100%;
  box-sizing: border-box;
}



.simple-select .select-search {
  width: 100%;
  padding: 6px 10px;
  box-sizing: border-box;
  border: none;
  border-bottom: 1px solid #ccc;
  font-size: 14px;
}

.simple-select .select-options {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 160px;
  overflow-y: auto;
}

.simple-select .clear-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #c00;
  font-weight: bold;
  font-size: 16px;
  user-select: none;
  padding: 0 4px;
}

.simple-select .clear-btn:hover {
  color: #900;
}

.simple-select .caret {
  position: absolute;
  right: 10px;
  top: 50%;
  margin-top: -6px;
  font-size: 12px;
  color: #555;
  pointer-events: none;
}

.simple-select .select-options li {
  padding: 6px 10px;
  cursor: pointer;
}

.simple-select .select-options li.highlighted,
.simple-select .select-options li:hover {
  background-color: #eee;
}

.simple-select .no-options {
  padding: 6px 10px;
  color: #999;
  font-style: italic;
}

.simple-select--form-control {
  min-width: 0;
}

.simple-select--form-control .select-display {
  min-height: 34px;
  padding: 6px 30px 6px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  line-height: 20px;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
}

.simple-select--form-control .select-display:hover {
  border-color: #adadad;
}

.simple-select--form-control .select-display:focus,
.simple-select--form-control:focus .select-display {
  border-color: #66afe9;
  outline: 0;
  box-shadow:
    inset 0 1px 1px rgba(0, 0, 0, 0.075),
    0 0 8px rgba(102, 175, 233, 0.6);
}

.simple-select--form-control .select-dropdown {
  margin-top: 2px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.simple-select--form-control .select-search {
  height: 34px;
  padding: 6px 12px;
  border-bottom: 1px solid #e5e5e5;
}

.simple-select--form-control .select-options {
  max-height: 220px;
}

.simple-select--form-control .select-options li {
  padding: 8px 12px;
}

.simple-select--form-control .select-options li.highlighted,
.simple-select--form-control .select-options li:hover {
  background-color: #f5f5f5;
}

.simple-select--form-control .clear-btn {
  color: #777;
  font-size: 14px;
}

.simple-select--form-control .clear-btn:hover {
  color: #333;
}

/* TREE DROPDOWN COMPONENT */
.proc-tree-dropdown {
  width: 100%;
}

.proc-tree-dropdown__body {
  position: relative;
}

.proc-tree-dropdown__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  height: 34px;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  background: #fff;
  color: #333;
  font-size: 14px;
  line-height: 1.42857143;
  cursor: pointer;
  box-shadow: none;
  transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
}

.proc-tree-dropdown__trigger:hover,
.proc-tree-dropdown__trigger[aria-expanded="true"] {
  border-color: #999;
  background: #fff;
  box-shadow: none;
}

.proc-tree-dropdown__value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
  font-weight: 400;
}

.proc-tree-dropdown__trigger > i {
  color: #444;
  font-size: 12px;
}

.proc-tree-dropdown__menu {
  position: absolute;
  z-index: 25;
  top: calc(100% + 8px);
  left: 0;
  right: auto;
  width: max-content;
  min-width: 100%;
  max-width: min(90vw, 760px);
  max-height: 320px;
  overflow: auto;
  padding: 10px;
  border: 1px solid #dbe2ea;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .10);
}

.proc-tree-dropdown__all {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-bottom: 8px;
  padding: 9px 10px;
  border: 0;
  border-radius: 10px;
  background: #f8fafc;
  color: #334155;
  font-weight: 600;
  cursor: pointer;
}

.proc-tree-dropdown__all:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.proc-tree-dropdown__all--active {
  background: #eef2f7;
  color: #0f172a;
}

.proc-tree-dropdown__all-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.proc-tree-dropdown__all-check {
  margin-left: auto;
  opacity: 0;
}

.proc-tree-dropdown__all-check--visible {
  opacity: 1;
}

.proc-tree-dropdown__tree {
  margin: 0;
  padding: 0;
  min-width: 100%;
  width: max-content;
  list-style: none;
}

.proc-tree-dropdown__row {
  position: relative;
  display: flex;
  align-items: center;
  width: max-content;
  min-width: 100%;
  min-height: 34px;
  margin: 2px 0;
  border-radius: 10px;
}

.proc-tree-dropdown__row--nested::before {
  content: '';
  position: absolute;
  left: 4px;
  top: -4px;
  bottom: -4px;
  width: calc(var(--tree-depth, 0) * 18px);
  background-image: radial-gradient(circle, rgba(148, 163, 184, .95) 1px, transparent 1.25px);
  background-size: 18px 6px;
  background-position: 16px 0;
  background-repeat: repeat;
  pointer-events: none;
}

.proc-tree-dropdown__row--selected {
  background: #eef2f7;
}

.proc-tree-dropdown__toggle,
.proc-tree-dropdown__spacer {
  flex: 0 0 22px;
  width: 22px;
}

.proc-tree-dropdown__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #64748b;
  cursor: pointer;
}

.proc-tree-dropdown__toggle:hover {
  color: #475569;
}

.proc-tree-dropdown__spacer {
  display: inline-block;
  height: 22px;
}

.proc-tree-dropdown__label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-width: max-content;
  padding: 6px 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #1f2937;
  text-align: left;
  cursor: pointer;
}

.proc-tree-dropdown__row--nested .proc-tree-dropdown__label::before {
  content: '';
  position: absolute;
  left: -14px;
  top: 50%;
  width: 14px;
  border-top: 1px dashed #94a3b8;
  transform: translateY(-50%);
  pointer-events: none;
}

.proc-tree-dropdown__label:hover {
  background: #f8fafc;
}

.proc-tree-dropdown__label span {
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.proc-tree-dropdown__folder {
  color: #d97706;
}

.proc-tree-dropdown__empty {
  padding: 10px;
  color: #64748b;
  font-size: 13px;
}
