/*
backend.css
*/

/**
 *
 * @category        tool
 * @package         Outputfilter Dashboard
 * @version         1.6.3
 * @authors         Thomas "thorn" Hornik <thorn@nettest.thekk.de>, Christian M. Stefan (Stefek) <stefek@designthings.de>, Martin Hecht (mrbaseman) <mrbaseman@gmx.de>
 * @copyright       (c) 2009,2010 Thomas "thorn" Hornik, 2010-2023 Christian M. Stefan (Stefek), 2016-2023 Martin Hecht (mrbaseman)
 * @link            https://github.com/mrbaseman/outputfilter_dashboard
 * @link            https://addons.wbce.org/pages/addons.php?do=item&item=53
 * @link            https://forum.wbce.org/viewtopic.php?id=176
 * @license         GNU General Public License, Version 3
 * @platform        WBCE 1.x
 * @requirements    PHP 7.4 - 8.2
 *
 * This file is part of OutputFilter-Dashboard, a module for WBCE and Website Baker CMS.
 *
 * OutputFilter-Dashboard is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * OutputFilter-Dashboard is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with OutputFilter-Dashboard. If not, see <http://www.gnu.org/licenses/>.
 *
 **/

.outputfilter_dashboard h1{
    font-size: 1.5em;
    color: #556c87;
}
.hideupload {
    display: none
}

.filters-table a {
    font-weight: bold
}
div.settingValue{
    line-height: 1.9em;
}

.filters-table thead td,
.filters-table caption {
    color: #fff !important;
    font-weight: bold;
    background-color: #515d76
}
.filters-table thead td {
    font-size: 1em;
    color: whitesmoke;
    border-top: 2px solid #556C87;
    background-image: linear-gradient(#677D96, #859AB2);
    box-shadow: inset 0 -1px 0 rgb(0 0 0 / 5%);
    border-top: 1px solid #becadb;
    border-bottom: 1px solid #becadb;
}

table.filters-table tbody tr td:first-child,
table.filters-table tbody tr.sticky td{
    padding-left: 6px;
}
table.filters-table tbody tr td:last-child{
    width: 3%;
    margin-right: 6px;
}

table.filters-table tbody tr.sticky td {
    line-height: 30px;
    font-weight: 600;
    color: white;
    background-color: #a3baca!important;
    border-top: 2px solid #556C87;
    background-image: linear-gradient(#a3baca, #859AB2);
    box-shadow: inset 0 -1px 0 rgb(0 0 0 / 5%);
    text-shadow: outset 0 -1px 0 rgba(0, 0, 0, 0.05);

}


.filters-table caption {
    font-size: 14px;
    font-weight: bold;
    line-height: 160%;
    text-align: left;
    padding-left: 10px;
    height: 22px
}

table.filters-table {
    margin-bottom: 8px;
    background-color: #ebf7ff;
}

.filters-table th,
b {
    color: #515d76;
    font-weight: bold;
    background-repeat: repeat-x;
    background-attachment: scroll;
    background-position: 0 0;
    text-align: right;
    width: 180px !important;
    vertical-align: top
}

/*table foot*/
.filters-table tfoot td,
.filters-table tfoot th {
    background-color: #b3c9d7;
    background-image: none;
    background-position: 0 -50px;
    padding: 5px;
    border-top: 2px solid #fff;
    border-bottom: 2px solid #fff
}

/*rows*/
.filters-table td,
.row_a th,
.row_a {
    background: #ffffff;
    border-bottom: 1px solid #becadb;
    vertical-align: top;
    margin-top: 10px;
}
.filters-table tr:last-child td,
.filters-table tr:last-child th{
    border: none;
}

.row_b td,
.row_b th {
    background: #fafafb;
    border-bottom: 1px solid #becadb;
}

.filters-table td,
.filters-table td,
.filters-table .last-modified td {
    line-height: 36px;
}

/*
------------------| dashboard-rows
*/
tr.inactive td{
    opacity: 0.65;
}


/*last-modified row*/
tr.last-modified td{
    background-color: #e9f6de;
}

td.row-separator {
    border-top: 2px solid #515d76
}

div#upload-panel {
    background: rgb(250, 250, 251);
    text-align: center;
    margin-bottom: 6px;
    padding: 6px;
    border: solid 1px #515d76
}

/*special customization*/
textarea,
textarea:focus,
input,
input:focus {
    color: #6c1111;
    font-family: monospace;
    padding: 2px;
    bottom: 30px;
}

textarea:focus,
input:focus {
    background-color: #fffcdd
}

/*READONLY*/
input[type=text][readonly],
textarea[readonly],
select[disabled],
div.disabled {
    color: #4b4545;
    background-color: #f4f4f4;
    cursor: not-allowed;
}


button {
    cursor: pointer;
    padding: 2px 7px 2px 5px;
    min-width: 150px
}

button img {
    margin-right: 4px;
    margin-bottom: -2px;
    margin-left: 2px;
    border: none;
}

#close-panel {
    text-align: right;
    margin: 0
}

/*let js-onclick images act like links*/
img.link {
    cursor: pointer
}

img.info {
    cursor: help
}

/*used in arrays*/
span.arrow {
    color: #515d76;
    font-size: large
}

a:hover {
    text-decoration: none
}

h2 {
    color: #516182;
    font-family: Verdana, Arial;
    letter-spacing: 1px
}

a:focus {
    outline: none;
}

/*
----------------------------------| standard notes
*/
.warning,
tr.warning td {
    color: #900 !important;
    font-size: 11px;
    background-color: #ffefed !important;
    background-image: none !important;
    margin-top: 2px;
    margin-right: 2px;
    margin-bottom: 2px;
    padding: 2px;
    border: solid 1px
}

.notification, tr.notification td {
    color: #360 !important;
    font-size: 11px;
    background-color: rgb(235, 250, 237) !important;
    background-color: rgba(235, 250, 237, 0.5) !important;
    background-image: none !important;
    margin-top: 2px;
    margin-right: 2px;
    margin-bottom: 2px;
    padding: 6px 7px;
    line-height: 17px;
    width: 99%;
    border: solid 1px;
}

/*
----------------------------------| check-tree (see backend_body.js)
*/

div.checktreestylearea {
    font-size: 12px;
    background-color: #fff;
    margin-top: -3px;
    margin-right: 5px;
    margin-bottom: 5px;
    padding: 0px 5px 7px;
    width: 99%;
    border: dashed 1px #515d76;
}

ul.checktreestyle,
ul.checktreestyle * {
    list-style-type: none;
    padding: 0;
    margin: 0;
    margin-top: 6px;
    line-height: 26px;
}

ul.checktreestyle img.arrow {
    border: 0;
    width: 20px;
}

ul.checktreestyle li {
    margin: 0;
}

ul.checktreestyle li ul {
    margin: 0 0 0 20px;
}

ul.checktreestyle label {
    cursor: pointer
}

ul.checktreestyle label.hover {
    color: #961c1c;
    background-color: #f8f8f8
}

ul.checktreestyle li .arrow {
    height: 18px;
    cursor: pointer;
    float: left;
    background: transparent no-repeat 0 4px;
}

ul.checktreestyle li .collapsed {
    width: 20px;
    background-image: url(images/collapsed.png);
    background-position: 0 0
}

ul.checktreestyle li .expanded {
    width: 20px;
    background-image: url(images/expanded.png);
    background-position: 0 0
}

ul.checktreestyle li .checkbox {
    background: url(images/unchecked.png) no-repeat 2px -3px;
    cursor: pointer;
    width: 20px;
    height: 18px;
    float: left
}

ul.checktreestyle li .checked {
    background-image: url(images/checked.png);
}

ul.checktreestyle li .half_checked {
    background-image: url(images/marker.png);
}

/*
----------------------------------| activity
*/
.activity {
    display: inline;
    font-size: 18px;
    line-height: 18px;
    cursor: pointer;
}

.activity img {
    vertical-align: middle;
    width: 16px;
    height: 16px;
    background: transparent url(images/activity.png) no-repeat;
    background-position: 0px 0px;
}

.activity-checked img {
    background-position: 0px -17px;
}

.activity-disabled img {
    background-position: 0px -32px;
}

.activity-checked .activity-disabled img {
    background-position: 0px -48px;
}
.short-description{
    font-size:.9em; 
    color: #4c4c4c;
    line-height: 14px
}
.short-description a[data-ctrl]{    
    color: #9fb5c7;
}
#dashboard i.fa{
    font-size: 1rem;
    color: #68849d;
}
#dashboard i.fa-trash {
    color: #d54a4a;
}
#dashboard i.circle-icon {
    font-size: 0.91rem;
    color: whitesmoke;
    padding:6px;
    border-radius: 30%;
    border: 1px solid #b8c2cd;
    background-color: #a3baca!important;
    background-image: linear-gradient(#a3baca, #859AB2);
}
.filter-type {
    min-width: 64px;
}
/*
----------------------------------| drag&drop
*/
/*.dragdrop_handle {
    cursor: move;
    padding: 0;
    width: 20px !important;
    border-style: solid;
    border-width: 2px 2px 3px;
    border-color: #cad2d9 #bac5ce
}*/
.dragdrop_handle {
    width: 25px;
    background-image: url("images/drag_indicator.svg") !important;
    background-position: right 6px !important;
    background-repeat: no-repeat !important;
    cursor: move;
}
.jsadmin_drag {
    cursor: move;
}

.jsadmin_drag a,
.jsadmin_drag input,
.jsadmin_drag select {
    cursor: pointer;
}

ul.jsadmin_drag_area {
    border: solid 1px #99f;
}

/*

        The following CSS declarations needed for proper work with Drag&Drop

*/


/*
item row hover onmouseover
*/
tr.frow_hover   { background-color: #f5f8dc }

/*
--------------| Drag& Drop specifics
*/
.downloadGalleryResult      { font-size: 8px; font-family: Courier; text-align: center }
/*
.dragdrop_download_gallery   { background-color: #d5dde7; width: 15px }
*/



.move_up, .move_down { width: 16px !important }


.switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
  margin-left: 3px;
}
.switch input{ display:none }
 .slider-red {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #897070;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider-red:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 2px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;box-shadow: 2px 2px 10px rgb(0 0 0 / 20%);
}

input:checked + .slider-red {
    background-color: #BCE954; /* green*/
}

input:focus + .slider-red {
  box-shadow: 0 0 1px #FE2712;
}

input:checked + .slider-red:before {
  -webkit-transform: translateX(13px);
  -ms-transform: translateX(13px);
  transform: translateX(13px);
}

/* Rounded sliders */
.slider-red.round {
  border-radius: 12px;
}

.slider-red.round:before {
  border-radius: 50%;
}

/**
 * https://codepen.io/oobleck/pen/MYjdbx
 * The switch widget!
 * Usage:
 *   <input type="checkbox" switch[="type"] id="toggleSwitch" />
 *   <label for="toggleSwitch" data-on-label="On" data-off-label="Off"></label>
 */
input[switch] {
  display: none;
}
input[switch] + label {
    margin-left:3px;
  font-size: 1em;
  line-height: 1;
  width: 2.8rem;
  height: 1.4rem;
  background-color: #ddd;
  background-image: none;
  border-radius: 2rem;
  padding: 0.19rem;
  cursor: pointer;
  display: inline-block;
  text-align: center;
  position: relative;
  box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2) inset;
  font-family: inherit;
  transition: all 0.25s ease-in-out;
}
input[switch] + label:before {
  /* Label */
  text-transform: uppercase;
  color: #b7b7b7;
  content: attr(data-off-label);
  display: block;
  font-family: inherit;
  font-family: FontAwesome, inherit;
  font-weight: 500;
  font-size: 0.7rem;
  line-height: 1rem;
  position: absolute;
  right: 0.38rem;
  margin: 0.2166666667rem;
  top: 0;
  text-align: center;
  min-width: 1.005rem;
  overflow: hidden;
  transition: all 0.25s ease-in-out;
}
input[switch] + label:after {
  /* Slider */
  content: "";
  position: absolute;
  left: 0.25rem;
  background-color: #f7f7f7;
  box-shadow: none;
  border-radius: 2rem;
  height: 1.005rem;
  width: 1.005rem;
  transition: all 0.25s ease-in-out;
}
input[switch]:checked + label {
  background-color: lightblue;
  background-image: linear-gradient(rgba(255, 255, 255, 0.15), rgba(0, 0, 0, 0.2));
  box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3) inset;
}
input[switch]:checked + label:before {
  color: #fff;
  content: attr(data-on-label);
  right: auto;
  left: 0.20rem;
}
input[switch]:checked + label:after {
  left: 1.6rem;
  background-color: #f7f7f7;
  box-shadow: 1px 1px 10px 0 rgba(0, 0, 0, 0.3);
}

input[switch=bool] + label {
  background-color: #a09191; /* grey #ee6562;*/
      box-shadow: 1px 1px 10px rgb(0 0 0 / 50%) inset;
}
input[switch=bool] + label:before {
  color: #fff !important;
}
input[switch=bool]:checked + label {
  background-color: #BCE954;
}
input[switch=bool]:checked + label:before {
  color: #fff !important;
}
/**
    labeled
    when `attr(data-on-label)` is used
*/
input[switch] + label.labeled{
    width: 7rem;
}
input[switch]:checked + label.labeled:before {
    left: 0.5rem;
}
input[switch]:checked + label.labeled:after{
    left: 5.68rem
}
input[switch=bool]:checked + label.labeled {
  background-color: #a9d249;
}
input[switch=bool] + label.labeled {
  background-color: #b8b1b2;
}

.card input[switch] + label{
    margin-bottom: 0rem;
    margin-top: .6rem;
    margin-right: .5rem;
}

.low-opac label{
    opacity: 0.5;
}
.row-on-delete td{
    background-color: #ffe0e0;
    font-weight: 800;
}
.row-on-delete td:nth-child(2){
    color: #c81e1e;
    text-decoration: line-through;
}
.row-on-delete td:nth-child(3){
    font-weight: 400;
    line-height: 1.7;
    font-size: .95em;
    text-align: right;
    padding-right: 10px;
}
.row-on-delete td:last-child{
    text-align: right;
}


/**
 * Inline confirm prompt buttons
 */
.btn-inline {
        margin: 3px 4px 3px 0px;
        text-decoration: none;
        color: white !important;
        font-weight: normal !important;
        padding: 0px 5px;
        font-size: 12px;
        line-height: 1.6;
        display: inline-block;
        position: relative;
        border: 1px solid rgba(0,0,0,0.21);
        border-bottom: 3px solid rgba(0,0,0,0.21);
        border-radius: 6px;
        text-shadow: 0 1px 0 rgba(0,0,0,0.15);
}

.btn-inline.red{
        background: rgba(250,90,90,1);
        background: linear-gradient(#ff8383 0%, #e85151 100%);
}
.btn-inline.red:active   {background: #E35252;}

.btn-inline.green {
        background: rgba(130,200,160,1);
        background: linear-gradient(to bottom, #b2d660 0%, #95b44a 100%);
}
.btn-inline.green:active {background: #8baf37;}
input[switch=bool]:checked:disabled + label {
    background: #c0de7dbf;
    cursor: not-allowed;
}
