/* Global variables. */
:root,
::backdrop {
  --quickbox-topbar-height: 50px;
  --quickbox-footer-height: 64px;
  --quickbox-send-width: 66px;

  /* Set sans-serif & mono fonts */
  --sans-font: -apple-system, BlinkMacSystemFont, "Avenir Next", Avenir,
  "Nimbus Sans L", Roboto, "Noto Sans", "Segoe UI", Arial, Helvetica,
  "Helvetica Neue", sans-serif;
  --mono-font: Consolas, Menlo, Monaco, "Andale Mono", "Ubuntu Mono", monospace;
  --standard-border-radius: 5px;

  /* Default (light) theme */
  --bg: #fff;
  --bg-primary-color: #2b5797;
}

/* Dark theme */
/*
@media (prefers-color-scheme: dark) {
  :root,
  ::backdrop {
    color-scheme: dark;
    --bg: #212121;
    --accent-bg: #2b2b2b;
    --text: #dcdcdc;
    --text-light: #ababab;
    --accent: #ffb300;
    --accent-hover: #ffe099;
    --accent-text: var(--bg);
    --code: #f06292;
    --preformatted: #ccc;
    --disabled: #111;
  }
 */

  /* Add a bit of transparency so light media isn't so glaring in dark mode */
  /*
  img,
  video {
    opacity: 0.8;
  }
}
*/

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

h1,h2,h3,h4,h5,h6, form {
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
}

/* End reset */

html {
  font-family: var(--sans-font), sans-serif;
  scroll-behavior: smooth;
  overflow-x: hidden;
  box-sizing: border-box;
}

*,
*:before,
*:after {
  box-sizing: inherit
}

body {
  margin: 0;
  min-height: 100vh;
}

input, select, textarea{
  display: block;
  border: 1px solid #ccc !important;
  width: 100%;
  font: inherit;
  padding: 8px;
  border-radius: 4px;
}

textarea {
  overflow: auto;
}

button, .button {
  border: none;
  display: inline-block;
  vertical-align: middle;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background-color: inherit;
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  font-size: 0.9rem;
  border-radius: 8px;
}

button:hover, .button:hover {
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

button {
  padding: 8px 16px;
}

.button {
  padding: 10px 18px;
}

fieldset {
  border-radius: 8px;
}

.switch {
  float: left;
}

.switch input {
  width: auto;
}

input[type='checkbox'],
input[type='radio'] {
  width: 18px;
  height: 18px;
  position: relative;
  accent-color: var(--bg-primary-color);
}

.label-checkbox {
  top: 4px;
  position: relative;
  margin-left: 4px;
}

#main-sidebar {
  width: 300px;
  z-index: 5;
}

#app-title {
  height: 50px;
  background-color: var(--bg-primary-color);
  color: #ffffff;
  font-size: 1.4rem;
  padding-left: 8px;
  width: 300px;
  display: flex;
  align-items: center;
  position: fixed;
}

#main-sidebar-content {
  margin-top: 50px;
}

#main-sidebar-content h5 {
  font-size: 1rem;
  margin-top: 10px;
  margin-bottom: 10px;
}

#page-top-bar {
  display: flex;
  align-items: center;
  z-index: 1;
  height: 50px;
}

#page-title-container {
  margin-left: 8px;
  padding: 0;
  width: 100%;
}

#page-title-container h5 {
  white-space: nowrap;
  overflow: hidden;
}

#page-title {
  float: left;
  padding: 4px 4px;
  font-size: 1.4rem;
}

#search-bar {
  float: right;
}

#search-text {
  float: left;
  width: auto;
  padding: 4px;
}

#search-bar button {
  margin-top: 2px;
}

.sidebar-block {
  padding: 0.01em 4px;
}

.sidebar-menu a {
  width: 100%;
  display: block;
  padding: 8px 16px;
  text-align: left;
  border: none;
  white-space: normal;
  float: none;
  outline: 0;
  font-size: 1rem;
}

#page-container {
  padding: 0.01em 4px;
}

#dashboard h5 {
  font-size: 1rem;
  color: var(--bg-primary-color);
}

.tab-bar {
  color: #000 !important;
  background-color: #f1f1f1 !important;
  width: 100%;
  overflow: hidden;
}

.tab-button {
  margin-right: 6px;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  background-color: #ccc;
  cursor: pointer;
  padding: 6px 16px;
  float: left;
  width: auto;
  display: block;
  border-right: 1px solid #ccc !important;
  border-left: 1px solid #ccc !important;
  border-top: 1px solid #ccc !important;
}

.tab-button.active,
.tab-button:hover {
  background-color: #f1f1f1 !important;
}

.menu-item-title {
  overflow: hidden;
}

.menu-item-title a {
   text-align:left;
   width: 100%;
 }

.menu-item-action {
  float: right;
  width: 50px;
}

.menu-item-title a {
  font-size: 1rem;
}

.ss-main {
  padding: 3px;
}

.ss-value {
  padding: 4px;
}

.ss-main .ss-values .ss-value .ss-value-text {
  font-size: 15px;
}

.ss-main .ss-values .ss-value {
  background-color: var(--bg-primary-color);
}

.ss-content .ss-list .ss-option:hover,
.ss-content .ss-list .ss-option.ss-highlighted,
.ss-content .ss-list .ss-option:not(.ss-disabled).ss-selected {
  background-color:var(--bg-primary-color);
}

#quickbox {
  position: fixed;
  display: none;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ddd;
  z-index: 5;
}

#quickbox-top-bar {
  height: var(--quickbox-topbar-height);
}

#quickbox-footer {
  height: var(--quickbox-footer-height);
  position:fixed; bottom:0;
}

#quickbox-content {
  height: calc(100vh - var(--quickbox-footer-height));
  overflow: auto;
  display: flex;
  flex-direction: column-reverse;
}

#quickbox-content .w3-button {
  padding: 6px 10px;
}

#quickbox-content .buttons {
  width: 32px;
}

#quickbox-content .buttons :first-child {
  margin-bottom: 4px;
}

#quickbox-title-container {
  width: 100%;
  padding: 0;
  margin-left: 8px;
}

#quickbox-footer {
  padding: 2px;
}

#quickbox-footer .button {
  width: 50px;
  margin-left: 4px;
}

#quickbox-send {
  cursor: pointer;
  padding: 14px 16px;
}

#quickbox-footer .textarea {
  padding-right: 4px;
}

.quickbox-row {
  margin-top: 4px;
  margin-bottom: 4px;
}

#quickbox-content .w3-row {
  background-color: #fff;
}

#quickbox-content div:nth-child(2n+1) {
  background-color: #fafafa;
}