/***** SVG Icons *****/
.icon, .icon-only {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}

.icon svg, .icon-only svg {
  flex-shrink: 0;
}

a.icon .icon-svg,
a.icon-only .icon-svg,
span.icon-actions .icon-svg {
  stroke: #169;
  fill: none;
}

a.icon:hover .icon-svg,
a.icon-only:hover .icon-svg,
span.icon-actions:hover .icon-svg {
  stroke: #c61a1a;
}

a.icon .icon-svg-filled,
a.icon-only .icon-svg-filled {
  stroke: none;
  fill: #169;
}

a.icon:hover .icon-svg-filled, a.icon-only:hover .icon-svg-filled {
  stroke: none;
  fill: #c61a1a;
}

svg.icon-ok {
  stroke: #5db651;
}

.icon-error svg.icon-svg {
  stroke: #c61a1a
}

.icon-warning svg.icon-svg {
  stroke: #e4bc4b;
}

.icon-only span {
  display: none;
}

svg.icon-svg {
  stroke: #343a40; /* oc-gray-8 */
  fill: none;
  stroke-width: 1.5;
  vertical-align: middle;
}

svg.icon-svg-filled {
  fill: #343a40; /* oc-gray-8 */
  stroke: none;
}

svg.s20 {
  width: 1.25rem;
  height: 1.25rem;
}

svg.s18 {
  width: 1.125rem;
  height: 1.125rem;
}

svg.s16 {
  width: 1rem;
  height: 1rem;
}

svg.s14 {
  width: 0.875rem;
  height: 0.875rem;
}

svg.s12 {
  width: 0.75rem;
  height: 0.75rem;
}

span.icon-label {
  margin-left: 4px;
}

span.icon-checked:has(:not(a svg.icon-svg)) svg.icon-svg {
  stroke: #2f9e44; /* oc-green-8 */
}

/***** Legacy icons *****/
.icon:not(:has(svg)) {
  background-position: 0% 50%;
  background-repeat: no-repeat;
  padding-left: 20px;
}
.icon-only:not(:has(svg)) {
  background-position: 0% 50%;
  background-repeat: no-repeat;
  padding-left: 16px;
  display: inline-block;
  width: 0;
  height: 16px;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 0;
  font-size: 0.5rem;
  vertical-align: middle;
}
.icon-only:not(:has(svg))::after {
  content: "\a0";
}


.sort-handle.ajax-loading { background-image: url("/assets/loading-5fb375e6.gif"); }
tr.ui-sortable-helper { border:1px solid #e4e4e4; }
svg.svg-loader {
  animation: spin 1s linear infinite;
  transform-origin: center;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}