:root {
  --ui-primary: #ecf0f1;
  --ui-highlight: rgb(67, 131, 170);
  --ui-dark: rgb(55, 82, 99);
  --ui-border: #d7e0e2;
  --cifr-main: rgb(67, 131, 170);
}

.caller {
  position: sticky;
  z-index:1000;
  top:0px;
  width: 30px;
  padding: 5px;
  background-color: var(--ui-highlight);
  border-radius: 0px 0px 10px 0px;
  box-shadow: var(--ui-highlight) 0px 0px 0px;
  animation: pulse 3s 4;
  box-sizing: unset;
  line-height: 1.0;
}

.caller svg {
  height: 30px;
  fill: #fff;
}

#adminlayer {
  position: sticky;
  top:0px;
  display:flex;
  flex-direction: column;
  padding-bottom: 10px;
  background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAADDCAYAAABDNXs2AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAFRJREFUeNpiYGBgsGQCEv9AxF848Y881n9ULk7iPzOQYASzGP7//88AYiETBw4cYMAqMUqMEoOI2LRpE9Z0ygBL3kxwAo2Ln0AoZsbCwiYB4QIEGACXeScCWYW7eQAAAABJRU5ErkJggg==');
  background-repeat: repeat-x;
  background-size: contain;
  width:103%;
  box-sizing: unset;
  z-index:99;
  line-height: 1.5;
  font-family: Verdana, Nimbus Sans;
  font-size: 12pt;
}

.tabs {
  position:relative;
}

.tab {
  cursor: pointer;
  padding:5px 20px;
  margin:0px 2px;
  display:inline-block;
}

.panels {
  min-height: 80px;
  width: 100%;
  border-radius: 3px;
  overflow: hidden;
  padding: 20px;
  z-index: 100;
}

.panel {
  display:none;
  animation: fadein .8s;
}

.panel-title {
  font-size:1.5em;
  font-weight:bold
}

.tabs_in {
  position:relative;
}

.tab_in {
  cursor: pointer;
  padding:10px 20px;
  margin:0px 2px;
  display:inline-block;
  color:#000;
}

.panels_in {
  min-height: 80px;
  border-radius: 3px;
  overflow: hidden;
  padding: 20px;
  z-index: 100;
}

.panel_in {
  display:none;
  animation: fadein .8s;
}

.panel-title_in {
  font-size:1.5em;
  font-weight:bold
}

.radio {
  display:none;
}

input[type="text"], input[type="password"], select {
  height: 30px;
  margin: 5px;
  width: 200px;
}

#pages:checked ~ .panels #pages-panel,
#users_groups:checked ~ .panels #users_groups-panel,
#system:checked ~ .panels #system-panel {
  display:block;
}

#groups:checked ~ .panels_in #groups-panel,
#users:checked ~ .panels_in #users-panel {
  display:block;
}

#pages:checked ~ .tabs #pages-tab,
#users_groups:checked ~ .tabs #users_groups-tab,
#system:checked ~ .tabs #system-tab {
  border-bottom: 3px solid var(--ui-dark);
}

#groups:checked ~ .tabs_in #groups-tab,
#users:checked ~ .tabs_in #users-tab {
  background:#fff;
  color:#000;
  border-bottom: 3px solid var(--ui-dark);
}

#pages:disabled ~ .tabs #pages-tab,
#users_groups:disabled ~ .tabs #users_groups-tab,
#system:disabled ~ .tabs #system-tab {
  background:#666;
  color: #888;
}

#groups:disabled ~ .tabs_in #groups-tab,
#users:disabled ~ .tabs_in #users-tab {
  background:#666;
  color: #888;
}

.modalform input {
  width: 300px;
}

.modalform label {
  display: inline-block;
  width: 100px;
  font-size: 10px;
}

.imgcontainer {
  width: 100%;
  overflow: scroll;
  height: 300px;
  transition: all 500ms ease-in-out;
  box-sizing: unset;
}

.imggallery {
  position: relative;
  float: left;
  padding: 10px;
  margin: 5px;
  overflow: hidden;
  transition: all 500ms ease-in-out;
  min-width: 90px;
  text-align: center;
}

.imggallery .overlay {
  position: absolute;
  overflow: hidden;
  bottom: 100%;
  left: 0;
  right: 0;
  width: 100%;
  height: 0;
  transition: .5s ease;
  opacity: 0.9;
  font-size: 10px;
}

.imggallery .overlay .ctrls {
  position: absolute;
  height: 30px;
  bottom: 0px;
  width: 110%;
  left: -10px;
  text-align: center;
}

.imggallery .overlay .ctrls svg {
  height: 20px;
  cursor: pointer;
  margin: 5px;
}

.imggallery .overlay .ctrls svg.del {
  fill: red;
}

.imggallery .overlay .text {
  padding: 10px;
  text-align: left;
}

.imggallery .overlay .removebutton {
  padding: 5px;
  background-color: red;
  border: none;
  border-radius: 3px 3px 3px 3px;
  color: #fff;
  font-weight: bold;
}

.imggallery:hover .overlay {
  bottom: 0;
  height: 100%;
}

form[name='dataform'] {
  width:100%;
  height:60px;
}

#progressbar {
  border: 2px solid var(--ui-highlight) !important;
}

#progressbar .ui-progressbar-value {
  border-radius: 0px !important;
  background-color: var(--ui-highlight) !important;
  height: 40px;
}

.button {
  float:left;
  padding: 30px;
  font-size: 10px;
  height: 50px;
  transition-duration: 0.5s;
  cursor: pointer;
  text-align: center;
}

.button_dbclient {
  float:left;
  padding-left: 10px;
  padding-right: 10px;
  font-size: 10px;
  height: 40px;
  transition-duration: 0.5s;
  cursor: pointer;
  text-align: center;
  background-color: var(--ui-highlight);
  color: #fff;
  border: none;
  margin-left: 5px;
}

.button_dbclient svg {
  position: relative;
  fill: #fff;
  top: 3px;
}

#addgroup, #adduser {
  height: 30px;
  width: 30px;
  border: none;
  margin-top: 10px;
  background-color: var(--ui-highlight);
  color: #fff;
  cursor: pointer;
  transition-duration: 0.5s;
}

#newacc {
  height: 30px;
  width: 30px;
  border: none;
  margin-top: 10px;
  background-color: var(--ui-highlight);
  font-size: 10px;
  color: #fff;
}

.button svg {
  height: 30px;
  padding-bottom: 10px;
}

/* modal dialog */

.msg {
  padding: 10px;
}

.ui-widget {
  font-family: Arial, Helvetica, sans-serif !important;
}

.ui-widget-content {
  border: none !important;
}

.ui-widget-header {
  border:none !important;
  background-color: transparent !important;
}

.ui-dialog {
  /*border: 4px solid var(--sec);*/
  border: none !important;
  font-size: initial !important;
}

.ui-widget-overlay {
  opacity: 0.8 !important;
}

.no-close .ui-dialog-titlebar-close {
  display: none;
}

.ui-button {
  border: none !important;
  background-color: var(--ui-highlight) !important;
  border-radius: 0px !important;
  color: #fff !important;
}

.ui-corner-all {
  border-radius: 0px !important;
}

.ui-state-default {
  border: none !important;
  background-color: var(--ui-primary);
}

.ui-state-active {
  border: none !important;
  border-radius: 0px !important;
}

.ugaccordion {
  margin: unset;
  overflow: auto;
  font-weight: normal !important;
  font-size: 100% !important;
}

.ugaccordion h3 {
  font-family: Arial, Helvetica, sans-serif !important;
  padding: 1em 2.2em;
}

.ui-accordion .ui-accordion-content {
  border: 1px solid ;
}

.ui-accordion .ui-accordion-header svg {
  position: relative;
  height: 20px;
  top: 3px;
}

.ui-dialog {
  line-height: normal;
}

.ui-dialog .ui-dialog-titlebar {
  padding: 1em 1em !important;
  background-image: linear-gradient(0deg, #444, #666);
}

form[id^="uid_"] label,  form[id^="gid_"] label, form[name="seoform"] label{
  display: inline-block;
  width:100px;
  font-size: 10px;
}

form[id^="uid_"] button {
  color: #fff;
  width: 200px;
  border: none;
  background-color: var(--ui-highlight);
  padding: 0px;
  height:40px;
}

form[id^="uid_"] .removeButton {
  width: 40px !important;
  background-color: red !important;
  border-radius: 0px !important;
}

form[id^="uid_"] select {
  width: 200px;
  margin: 5px;
}

form[id^="uid_"] input, form[id^="gid_"] input {
  border: 1px solid var(--ui-primary);
}

form[id^="uid_"] input:disabled, form[id^="gid_"] input:disabled {
  color:#999;
}

.filter input {
  width: 300px;
}

.filter label {
  display: inline-block;
  width:100px;
  font-size: 12px;
}

.ctrl {
  float: right;
}

.ctrl svg {
  height: 20px;
}

.l2button_bg {
  display: inline-block;
  width: 40px;
  height: 40px;
  background-color: var(--ui-highlight);
  text-align: center;
  transition-duration: 0.5s;
}

.l2button_bg > svg {
  margin-top: 10px;
}

hr {
  border: 1px solid var(--ui-dark);
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px !important;
  height: 34px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: var(--ui-highlight);
}

input:focus + .slider {
  box-shadow: 0 0 1px var(--ui-highlight);
}

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

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

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

.datacontainer {
  overflow: scroll;
}

.datacontainer table {
  border: none;
}

.datacontainer th {
  cursor: pointer;
}

.datacontainer td {
  overflow: hidden;
}

.asc:after { 
  content: " \2193"; 
}
.desc:after { 
  content: " \2191";
}

.data .ctrls {
  float: right;
}

.data .ctrls svg{
  cursor: pointer;
  height: 30px;
}

.hide-cols {
  margin-bottom: 20px;
}

.hide-cols td,
.hide-cols th {
  padding: 5px;
}

.hide-cols th {
  background: #567956;
  color: #fff;
}

.hide-cols tr:nth-child(even),
.hide-cols td:nth-child(even) {
  background: rgba(172, 242, 172, 0.4);
}

.hide-cols tr:last-child td {
  background: rgba(86, 121, 86, 0.8);
  color: #fff;
}

.datacontainer .closeWrap {
  width: 100%;
  height: 100%;
  position: relative;
  padding: 15px 0 5px;
}

.datacontainer .hide-col {
  background: var(--ui-highlight);
  width: 20px;
  height: 20px;
  line-height: 16px;
  color: #fff;
  border: 0 none;
  position: absolute;
  right: 0;
  top: 0;
  font-weight: normal;
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  -ms-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
  cursor: pointer;
}

.datacontainer #show {
  cursor: pointer;
  margin-top: 20px;
  height: 70px;
}

.datacontainer #show .btn {
  margin-right: 0.5em;
}

.datacontainer #show .sort {
  display: none;
}

@keyframes pulse {
  0% {
    -moz-box-shadow: 0 0 0 0 rgba(67, 131, 170, 0.4);
    box-shadow: 0 0 0 0 rgba(67, 131, 170, .0.4);
  }
  70% {
      -moz-box-shadow: 0 0 0 10px rgba(67, 131, 170, 0);
      box-shadow: 0 0 0 10px rgba(67, 131, 170, 0);
  }
  100% {
      -moz-box-shadow: 0 0 0 0 rgba(67, 131, 170, 0);
      box-shadow: 0 0 0 0 rgba(67, 131, 170, 0);
  }
}

@keyframes fadein {
    from {
        opacity:0;
    }
    to {
        opacity:1;
    }
}

@media (prefers-color-scheme: light) {
  #adminlayer {
    background-color: #f9f9fb;
    border-bottom: 1px solid #ccc;
    back
  }
  .button {
    border-right: 1px dotted var(--ui-border);
  }

  .button:hover {
    background-color: #ddd;
  }

  .l2button_bg:hover {
    background-color: #ddd;
  }

  #addgroup:hover, #adduser:hover {
    background-color: #ddd;
  }

  .tab {
    background: #f9f9fb;
    color:#000;
  }

  .tab:hover {
    background-color: #ddd;
  }

  #pages:checked ~ .tabs #pages-tab,
  #users_groups:checked ~ .tabs #users_groups-tab,
  #system:checked ~ .tabs #system-tab {
    background:var(--cifr-main);
    color:#fff;
    box-shadow: rgba(20, 20, 20, 0.3) 1px 2px 5px;
  }

  #groups:checked ~ .tabs_in #groups-tab,
  #users:checked ~ .tabs_in #users-tab {
    background:#fff;
    color:#000;
  }

  form[id^="uid_"] select {
    border: 1px solid var(--ui-primary);
    background-color: #fff;
  }

  .user-icon-default {
    content: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path d="M9.6,6.7a3.9,3.9,0,0,0,1.9-3.2A3.5,3.5,0,0,0,8,0,3.5,3.5,0,0,0,4.5,3.5,3.4,3.4,0,0,0,6.4,6.6c-2.6,1.9-4.3,7.9-4.3,8.9s.2.5.4.5H13.4l.4-.2a.7.7,0,0,0,.1-.5C13.7,14.5,12,8.6,9.6,6.7ZM6,3.5a2,2,0,1,1,2,2A2,2,0,0,1,6,3.5ZM4,14.3c.3-1.6,2.1-6.6,4-6.6s3.1,3.8,4,6.6Z"/></svg>');
  }

  .user-icon-active {
    content: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path d="M9.6,6.7a3.9,3.9,0,0,0,1.9-3.2A3.5,3.5,0,0,0,8,0,3.5,3.5,0,0,0,4.5,3.5,3.4,3.4,0,0,0,6.4,6.6c-2.6,1.9-4.3,7.9-4.3,8.9s.2.5.4.5H13.4l.4-.2a.7.7,0,0,0,.1-.5C13.7,14.5,12,8.6,9.6,6.7Z"/></svg>');
  }

  .ui-widget-overlay {
    background-color: #fff !important;
  }

  .ui-dialog {
    background-color: #fff;
    box-shadow: 0px 0px 5px #888;
  }

  .ui-dialog .ui-dialog-titlebar {
    background-image: linear-gradient(0deg, var(--ui-border), #fff);
  }

  .panels_in {
    background: #fff;
  }

  .ui-widget-header {
    border-bottom: 1px solid var(--ui-border) !important;
  }

  .filter input {
    border: 1px solid var(--ui-primary);
  }

  .modalform input {
    border: 1px solid var(--ui-border);
  }

  .ui-accordion > .ui-state-active {
    background-color: var(--ui-highlight) !important;
  }

  .ui-accordion .ui-accordion-content {
    border: 1px solid var(--ui-primary) !important;
  }

  .tab_in {
    color:#000;
  }

  .tab_in:hover {
    background-color: var(--ui-primary);
  }

  .imggallery {
    border: 1px solid var(--ui-primary);
  }

  .imggallery .overlay {
    background-color: #fff;
  }

  .imggallery .overlay .ctrls {
    background-color: #ccc;
  }

  .datacontainer table {
    color: #000;
  }
  
  .datacontainer th {
    color: #fff;
    padding: 5px;
    border-bottom: 1px solid #ccc;
    background-color: var(--ui-highlight);
  }

  .datacontainer th.selected {
    background-color: #ccc;
  }

  .datacontainer td {
    padding-bottom: 20px;
    border-bottom: 1px solid #ccc;
  }

  .datacontainer tr {
    background-color: #eee;
  }

  .datacontainer tr:hover {
    background-color: var(--ui-primary);
  }

  .data .ctrls svg{
    fill: #000;
  }

  .datacontainer .hide-col:hover {
    background: #ccc;
  }

  .button_dbclient:hover {
    background-color: #ccc;
  }
}

@media (prefers-color-scheme: dark) {
  #adminlayer {
    background-color: #333;
    border-bottom: 1px solid #222;
  }

  .button {
    border-right: 1px dotted #666;
    color: #fff;
  }

  .button svg {
    fill: #fff;
  }

  .button:hover {
    background-color: #444;
  }

  #addgroup:hover, #adduser:hover {
    background-color: #666;
  }

  .tab {
    background: #333;
    color:#fff;
  }

  .tab:hover {
    background-color: #444;
  }

  #pages:checked ~ .tabs #pages-tab,
  #users_groups:checked ~ .tabs #users_groups-tab,
  #system:checked ~ .tabs #system-tab {
    background:var(--cifr-main);
    color:#fff;
    box-shadow: rgba(0, 0, 0, 0.3) 1px 2px 5px;
  }

  #groups:checked ~ .tabs_in #groups-tab,
  #users:checked ~ .tabs_in #users-tab {
    background:#333;
    color:#fff;
  }

  form[id^="uid_"] select {
    border: 1px solid #777;
    background-color: #666;
  }

  .ui-widget-overlay {
    background-color: #333 !important;
  }

  .ui-dialog {
    background-color: #333;
    box-shadow: 0px 0px 5px #000;
  }

  .ui-dialog .ui-dialog-titlebar {
    background-image: linear-gradient(0deg, #444, #333);
  }

  .ui-widget-content {
    background-color: #333 !important;
    color: #fff !important;
  }

  .panels_in {
    background: #333;
  }

  .panel_in {
    color: #fff !important;
  }

  .ui-widget-header {
    border-bottom: 1px solid #222 !important;
    color: #fff !important;
  }

  .ui-accordion > .ui-state-default {
    background-color: #666 !important;
    color: #fff !important;
  }

  .ui-accordion > .ui-state-default:hover {
    background-color: #777 !important;
  }

  .user-icon-default {
    content: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path fill="white" d="M9.6,6.7a3.9,3.9,0,0,0,1.9-3.2A3.5,3.5,0,0,0,8,0,3.5,3.5,0,0,0,4.5,3.5,3.4,3.4,0,0,0,6.4,6.6c-2.6,1.9-4.3,7.9-4.3,8.9s.2.5.4.5H13.4l.4-.2a.7.7,0,0,0,.1-.5C13.7,14.5,12,8.6,9.6,6.7ZM6,3.5a2,2,0,1,1,2,2A2,2,0,0,1,6,3.5ZM4,14.3c.3-1.6,2.1-6.6,4-6.6s3.1,3.8,4,6.6Z"/></svg>');
  }

  .user-icon-active {
    content: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path fill="white" d="M9.6,6.7a3.9,3.9,0,0,0,1.9-3.2A3.5,3.5,0,0,0,8,0,3.5,3.5,0,0,0,4.5,3.5,3.4,3.4,0,0,0,6.4,6.6c-2.6,1.9-4.3,7.9-4.3,8.9s.2.5.4.5H13.4l.4-.2a.7.7,0,0,0,.1-.5C13.7,14.5,12,8.6,9.6,6.7Z"/></svg>');
  }

  .filter input, select {
    background-color: #666;
    color: #fff;
    border: 1px solid #777 !important;
  }

  .ui-accordion input {
    background-color: #666;
    border: 1px solid #777 !important;
    color: #fff !important;
  }

  .modalform input {
    border: 1px solid #777;
    background-color: #666;
    color: #fff;
  }

  .ui-accordion > .ui-state-active {
    background-color: var(--ui-highlight) !important;
  }

  .ui-accordion .ui-accordion-content {
    border-left: 1px solid #777 !important;
    border-right: 1px solid #777 !important;
    border-bottom: 1px solid #777 !important;
  }

  .tab_in {
    color:#fff;
  }

  .tab_in:hover {
    background-color: #444;
  }

  .l2button_bg:hover {
    background-color: #666;
  }

  .imggallery {
    border: 1px solid #222;
  }

  .imggallery .overlay {
    background-color: #444;
  }

  .imggallery .overlay .ctrls {
    background-color: #222;
  }

  .imggallery .overlay .ctrls svg {
    fill: #fff;
  }

  .ctrl svg {
    fill: #fff;
  }

  .datacontainer table {
    color: #fff;
  }

  .datacontainer th {
    padding-bottom: 20px;
    border-bottom: 1px solid #222;
    background-color: var(--ui-highlight);
  }

  .datacontainer th.selected {
    background-color: #333;
  }

  .datacontainer td {
    padding: 5px;
    border-bottom: 1px solid #222;
  }

  .datacontainer tr {
    background-color: #666;
  }

  .datacontainer tr:hover {
    background-color: #777;
  }

  .data .ctrls svg{
    fill: #fff;
  }

  .datacontainer .hide-col:hover {
    background: #222;
  }

  .button_dbclient:hover {
    background-color: #666;
  }
}
