/*
 * -------------------------------------------------------------------------
 * MoreOptions plugin for GLPI
 * -------------------------------------------------------------------------
 *
 * MIT License
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 * -------------------------------------------------------------------------
 * @copyright Copyright (C) 2025 by the MoreOptions plugin team.
 * @license   MIT https://opensource.org/licenses/mit-license.php
 * @link      https://github.com/pluginsGLPI/moreoptions
 * @link      https://gitlab.teclib.com/glpi-network/moreoptions/
 * -------------------------------------------------------------------------
 */
.mo-config .mo-seg {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  background: var(--tblr-bg-surface-tertiary);
  border: 1px solid var(--tblr-border-color);
  border-radius: 5px;
}
.mo-config .mo-seg input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.mo-config .mo-seg label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 15px;
  padding: 5px 11px;
  border-radius: 3px;
  white-space: nowrap;
  cursor: pointer;
  color: var(--tblr-secondary);
  margin: 0;
}
.mo-config .mo-seg label i {
  font-size: 15px;
}
.mo-config .mo-seg label:hover {
  color: var(--tblr-body-color);
  font-weight: 500;
}
.mo-config .mo-seg input:checked + label {
  opacity: unset;
  background: color-mix(in srgb, var(--glpi-palette-color-1), var(--tblr-bg-surface) 90%);
  font-weight: 600;
}
.mo-config .mo-inherited {
  display: none;
}
.mo-config .form-field:has(.mo-seg-inherit:checked) .mo-inherited {
  display: inline-flex;
  align-items: center;
}
.mo-config .mo-pane {
  display: none;
}
.mo-config .mo-pane.active {
  display: block;
}
.mo-config .mo-row-warn {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 13px;
  color: var(--tblr-warning);
  margin-top: 6px;
}
.mo-config .mo-row-warn i {
  font-size: 15px;
  flex: none;
  margin-top: 1px;
}