/**
 * General stylesheet for CESM
 * 
 * @author Dimas Pante <pante.com.br>
 */
:root {
  --main-color: #495084;
  --main-lighter-color: #50578f;
  --main-darker-color: #1b2f4c;
  --feature-color: #e5bfb5;
  --feature-lighter-color: #e19e46;
  --feature-darker-color: #a96f23;
}

body {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-size: 14px;
  background-color: #f7f7f7;
}

a {
  text-decoration: none;
}
a:focus,
a:hover {
  color: var(--main-color);
}

img {
  max-width: 100%;
}

#form img {
  border-radius: 4px;
}

/* backgrounds  */
.bg-main {
  background-color: var(--main-color);
}
.bg-main-lighter {
  background-color: var(--main-lighter-color);
}
.bg-main-darker {
  background-color: var(--main-darker-color);
}
.bg-feature {
  background-color: var(--feature-color);
}
.bg-feature-lighter {
  background-color: var(--feature-lighter-color);
}
.bg-feature-darker {
  background-color: var(--feature-darker-color);
}

/* colors */
.color-main {
  color: var(--main-color);
}
.color-main-lighter {
  color: var(--main-lighter-color);
}
.color-main-darker {
  color: var(--main-darker-color);
}
.color-feature {
  color: var(--feature-color);
}
.color-feature-lighter {
  color: var(--feature-lighter-color);
}
.color-feature-darker {
  color: var(--feature-darker-color);
}
.text-pending {
  color: #e19200;
}

/* preloader */
#preloader {
  position: fixed;
  z-index: 99999999;
  background-color: #000;
  background-color: rgba(73,80,132,0.7);
}
#preloader:before {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  border: 6px solid #fff;
  border-top-color: var(--main-color);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  -webkit-animation: animate-preloader 1s linear infinite;
  animation: animate-preloader 1s linear infinite;
}
@-webkit-keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* layout */
.rounded-xl {
  border-radius: 1rem;
}
.rounded-xl-left {
  border-radius: 1rem 0 0 1rem;
}
.rounded-xl-right {
  border-radius: 0 1rem 1rem 0;
}
.togglePassword {
  cursor: pointer;
}
div:has(.form-control) {
  position: relative;
}
label.error {
  position: absolute;
  top: 100%;
  font-size: 0.7rem;
  color: red;
}
.more::after,
.less::after {
  content: '\ed91';
  color: red;
  display: inline-block;
  font-family: boxicons;
  position: absolute;
  margin-left: 5px;
  margin-top: 15px;
  font-size: 18px;
}
.more::after {
  content: '\eedb';
  color: green;
}
.sb-sidenav .sb-sidenav-menu .nav .sb-sidenav-menu-heading {
  font-size: 0.65rem;
}
.sb-sidenav-dark .sb-sidenav-menu .nav-link span {
  margin-left: 10px;
}
.alert-dismissible .btn-close.sm {
  padding: 0.85rem 1rem;
}
.label-400 label,
.label-400 optgroup {
  font-weight: 400;
}
.floating-selectpicker {
  border-radius: 0.25rem !important;
  border: 1px solid #ced4da !important;
}
.floating-selectpicker > .form-control:focus,
.floating-selectpicker > .dataTable-input:focus,
.floating-selectpicker > .form-control:not(:placeholder-shown),
.floating-selectpicker > .dataTable-input:not(:placeholder-shown) {
  padding-top: 1rem;
}
.floating-selectpicker .bootstrap-select .dropdown-toggle:focus,
.floating-selectpicker .bootstrap-select>select.mobile-device:focus+.dropdown-toggle {
  outline: none !important;
}
.floating-selectpicker .bootstrap-select>.dropdown-toggle {
  background-color: #fff;
  border: 0 !important;
  box-shadow: none;
  outline: none;
  padding: 10px 0 0;
}

/* input personalizado fullcalendar/swal2 */
.sinput {
  margin: 0 0 .5rem !important;
  font-size: 1rem !important;
  width: 100% !important;
  padding: 8px 16px !important;
  height: auto !important;
}
textarea.sinput {
  min-height: 100px !important;
}
.fc .fc-timegrid-axis-cushion,
.fc .fc-timegrid-slot-label-cushion {
  font-size: .8rem;
}
button.swal2-styled {
  font-size: .9rem !important;
}

.timesheet {
  overflow-x: auto;
  padding-bottom: 25px;
}
.timesheet-user {
  min-width: 250px;
}
.draggers {
  min-height: 450px;
  font-size: 12px;
}
.ts-data+.ts-data {
  margin-top: 10px;
}
.ts-data:hover .card {
  border-color: #aaa;
}
.ts-data .bullet {
  cursor: help;
  display: inline-block;
  margin-right: 8px;
  width: 14px;
  height: 14px;
  vertical-align: sub;
  border-radius: 50%;
  background-color: #636363;
}
.ts-priority-2 .bullet  {
  background-color: #2c8a04;
}
.ts-priority-3 .bullet  {
  background-color: #8a8c06;
}
.ts-priority-4 .bullet  {
  background-color: #904a00;
}
.ts-priority-5 .bullet  {
  background-color: #900000;
}
.grabbable {
  cursor: move;
  cursor: grab;
  cursor: -moz-grab;
  cursor: -webkit-grab;
}
.grabbable:active {
  cursor: grabbing;
  cursor: -moz-grabbing;
  cursor: -webkit-grabbing;
}
.timesheet::-webkit-scrollbar {
  background-color: #ccc;
  border-radius: 5px;
  height: 8px;
}
.timesheet::-webkit-scrollbar-thumb {
  border-radius: 5px;
  background: #aaa;
}

.btn-xs {
  padding: 0.18rem 0.4rem;
  font-size: 0.75rem;
  border-radius: 0.18rem;
}

.hide {
  display: none;
}
.draggers.drag-over {
  border: dashed 1px orange;
}
.has-notification i {
  position: relative;
}
.has-notification i::after {
  content: '';
  background-color: #00ff00;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  position: absolute;
  top: -1px;
  right: -1px;  
}

.tags > * {
  font-size: 8px;
}

/* timesheet editor */
#editor {
  display: none;
  width: 100%;
  position: fixed;
  padding: 30px;
  z-index: 99999;
  background: white;
  top: 0;
  bottom: 0;
  right: -100%;
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
  transition: all .3s ease-in;
  overflow: auto;
}
@media (min-width:992px) {
  #editor {
    width: 760px;
    right: -760px;
  }
}
@media (min-width:1200px) {
  #editor {
    width: 1000px;
    right: -1000px;
  }
}
@media (min-width:1400px) {
  #editor {
    width: 1280px;
    right: -1280px;
  }
}

@-webkit-keyframes slide {
  100% { right: 0; }
}
@keyframes slide {
  100% { right: 0; }
}

#editor .close {
  text-align: right;
}
#editor .close::before {
  content: 'x';
  cursor: pointer;
  border: 1px solid #900;
  border-radius: 50%;
  color: #900;
  display: inline-block;
  padding: 0 10px 3px;
  vertical-align: middle;
  text-align: center;
  transition: all .2s ease;
  -moz-transition: all .2s ease;
  -webkit-transition: all .2s ease;
}
#editor .close:hover::before,
#editor .close:active::before,
#editor .close:focus::before {
  color: white;
  background: #900;
}
#editor.show {
  display: block;
  -webkit-animation: slide .2s forwards;
  animation: slide .2s forwards;
}
#editor h3 {
  margin: 0 0 30px;
}
html.show-editor {
  overflow: hidden;
}
html.show-editor::before {
  content: '';
  display: block;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #000;
  background: rgba(0,0,0,0.4);
  z-index: 180;
  position: fixed;
}

.tag-remove {
  display: none;
  background-color: #fff;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 1px;
  border-radius: 2px;
  top: 0;
  right: 0;
  bottom: 0;
  line-height: 29px;
}
.atag:hover .tag-remove {
  display: block;
}

.sb-sidenav-dark .sb-sidenav-menu .nav-link.active,
.sb-sidenav-dark .sb-sidenav-menu .nav-link:focus,
.sb-sidenav-dark .sb-sidenav-menu .nav-link:hover {
  background-color: var(--feature-lighter-color);
}

.dataTable.table {
  background-color: #fff;
}