/* Import variables and mixins.
--------------------------------------------- */
@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
:root {
  --color__text-main: #000;
  --sec: #feebcf;
  --Y50: #241601;
  --Y40: #6b4102;
  --Y30: #b26c04;
  --Y20: #fa9705;
  --Y10: #fbb54d;
  --Y5: #fdd294;
  --Y0: #fef0db;
  --prim: #007663;
  --G50: #00241f;
  --G40: #006d5c;
  --G30: #00b699;
  --G20: #00ffd6;
  --G10: #49ffe2;
  --G5: #92ffed;
  --G0: #dbfff9;
  --N50: #141414;
  --N40: #333333;
  --N30: #828282;
  --N20: #bdbdbd;
  --N10: #e0e0e0;
  --N5: #f2f2f2;
}

:root {
  --font-h1: 48px;
  --font-h2: 40px;
  --font-h3: 32px;
  --font-h4: 24px;
  --font-h5: 18px;
  --font-p: 16px;
}

/* Import base styles.
--------------------------------------------- */
body {
  font-family: "Poppins", sans-serif;
}

.bg-primary {
  background-color: var(--sec) !important;
}

.btn-primary,
.btn-dark {
  background-color: var(--prim);
  border-color: var(--prim);
}

.btn-primary:hover,
.btn-dark:hover {
  background-color: transparent;
  color: var(--prim);
  border-color: var(--prim);
}

.btn-primary:focus,
.btn-dark:focus {
  background-color: var(--prim);
  border-color: var(--prim);
  box-shadow: unset;
  color: white;
}

.btn-primary.disabled,
.btn-primary:disabled,
.btn-dark.disabled,
.btn-dark:disabled {
  background-color: var(--prim);
  border-color: var(--prim);
  color: white;
}

.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary.active:not(:disabled):not(.disabled),
.show > .btn-primary.dropdown-toggle,
.btn-dark:not(:disabled):not(.disabled):active,
.btn-dark.active:not(:disabled):not(.disabled),
.show > .btn-dark.dropdown-toggle {
  background-color: var(--prim);
  border-color: var(--prim);
  color: white;
}

.btn-primary:not(:disabled):not(.disabled):active:focus,
.btn-primary.active:not(:disabled):not(.disabled):focus,
.show > .btn-primary.dropdown-toggle:focus,
.btn-dark:not(:disabled):not(.disabled):active:focus,
.btn-dark.active:not(:disabled):not(.disabled):focus,
.show > .btn-dark.dropdown-toggle:focus {
  box-shadow: unset;
  color: white;
}

.btn-outline-primary {
  color: var(--prim);
  border-color: var(--prim);
}

.btn-outline-primary:hover {
  color: #fff;
  background-color: var(--prim);
  border-color: var(--prim);
}

.btn-outline-primary:focus,
.btn-outline-primary.focus {
  box-shadow: 0 0 0 0.2rem #00766380;
}

.btn-outline-primary.disabled,
.btn-outline-primary:disabled {
  color: var(--prim);
  background-color: transparent;
}

.btn-outline-primary:not(:disabled):not(.disabled):active,
.btn-outline-primary.active:not(:disabled):not(.disabled),
.show > .btn-outline-primary.dropdown-toggle {
  color: #fff;
  background-color: var(--prim);
  border-color: var(--prim);
}

.btn-outline-primary:not(:disabled):not(.disabled):active:focus,
.btn-outline-primary.active:not(:disabled):not(.disabled):focus,
.show > .btn-outline-primary.dropdown-toggle:focus {
  box-shadow: 0 0 0 0.2rem #00766380;
}

.btn:focus {
  box-shadow: unset;
}

.dropdown-item:active {
  background-color: var(--prim);
}

.form-control:focus {
  border-color: var(--prim);
  box-shadow: unset;
}

a {
  color: var(--prim);
}

a:hover {
  color: var(--G50);
}

ul.pagination li a {
  color: var(--prim);
}

ul.pagination a.page-link:hover {
  color: inherit;
}

ul.pagination li.active span {
  background-color: var(--prim);
}

.top-logo {
  text-align: center;
  margin-top: 3rem;
}

.card-container {
  max-width: 760px;
  margin: 0 auto;
  margin-bottom: 3rem;
}

/* Import existing styles.
--------------------------------------------- */
.dot-green {
  height: 12px;
  width: 12px;
  background-color: green;
  border-radius: 50%;
  display: inline-block;
}

.dot-red {
  height: 12px;
  width: 12px;
  background-color: red;
  border-radius: 50%;
  display: inline-block;
}

.text-large {
  font-size: 110%;
  margin: 5px;
}

.organization-card {
  height: 100%;
}

.disabled {
  pointer-events: none;
  cursor: default;
}

.loader {
  border: 16px solid #f3f3f3;
  /* Light grey */
  border-top: 16px solid #3498db;
  /* Blue */
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 2s linear infinite;
  display: none;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#accordionExample {
  display: none;
}

.my-card {
  position: absolute;
  left: 40%;
  top: -20px;
  border-radius: 50%;
}

#id_district_2 {
  width: 150px;
}

#accordionExample {
  display: none;
}

.wrapper {
  padding: 32px 42px 80px;
}

.filter-wrapper > form > .form-group {
  margin-right: 12px;
}

.filter-wrapper > form > button {
  margin-right: 12px;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  height: 38px !important;
  margin-right: 13px !important;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  line-height: 38px !important;
  padding: 0 38px 0 0.75rem !important;
  font-size: 14px;
  line-height: 21px;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #495057 !important;
}

.select2-container .select2-selection--single {
  height: 38px !important;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__placeholder {
  color: #6c757d;
  font-size: 1rem;
  line-height: 21px;
}

.select2-container--default .select2-selection--single {
  outline: none;
  border: 1px solid #ced4da !important;
}

.select2-container--default .select2-selection--single:hover {
  border-color: #ced4da;
}

.select2-container--default .select2-selection--single:focus {
  border-color: #80bdff !important;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.select2-container--default.select2-container--open.select2-container--below
  .select2-selection--single,
.select2-container--default.select2-container--open.select2-container--below
  .select2-selection--multiple {
  border-color: #80bdff !important;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.select2-container--default.select2-container--focus
  .select2-selection--multiple {
  border-color: #80bdff !important;
}

.select2-container--default .select2-selection--multiple {
  border: 1px solid #ced4da !important;
}

.select2-container--default
  .select2-results__option--highlighted[aria-selected] {
  background-color: #80bdff !important;
}

.select2-results__option {
  font-size: 1rem;
  padding-left: 20px !important;
  padding-right: 20px !important;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__clear {
  right: 0;
  color: #495057;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__clear:hover {
  color: #80bdff;
}

.select2-selection.location-name-select {
  max-height: 130px;
  overflow-y: auto;
}

.table th,
.table td {
  font-size: 14px;
}

.table-del-btn,
.table-edit-btn {
  color: #fff;
  cursor: pointer;
  font-size: 16px;
}

.table-edit-btn {
  margin-right: 16px;
  color: var(--primary);
}

.table-edit-btn:hover {
  color: #0056b3;
}

.table-del-btn {
  color: var(--danger);
}

.table-del-btn:hover {
  color: #bd2130;
}

.news-th-title {
  width: 24%;
}

.news-th-source {
  width: 15%;
}

.news-th-location-processed {
  width: 10%;
}

.news-th-date-processed {
  width: 10%;
}

.news-th-location {
  width: 10%;
}

.news-th-published-date {
  width: 18%;
}

.news-th-actions {
  width: 8%;
}

.breadcrumb {
  background-color: transparent;
  padding: 0;
  margin-bottom: 0;
}

.news-date-info {
  font-size: 14px;
}

.detail-left__body {
  max-height: 800px;
  overflow-y: auto;
}

.detail-right__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.detail-right__list > li:not(:last-child) {
  margin-bottom: 1.2rem;
}

.detail-right__list > li h4 {
  font-size: 1rem;
  font-weight: 600;
}

.form-group {
  margin-bottom: 0;
}

.form-card {
  padding: 2.5rem;
}

.detail-card {
  padding: 2.5rem;
}

.date-clear-icon,
.select-clear-icon {
  top: 43px;
  right: 60px;
  cursor: pointer;
  color: #495057;
}

.date-clear-icon:hover,
.select-clear-icon:hover {
  color: var(--primary);
}

.news-district-select
  .select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  padding: 0 62px 0 0.75rem !important;
}

.alert-box {
  position: fixed;
  left: 225px;
  right: 0;
  margin: 0;
  bottom: 0;
}

@media screen and (max-width: 992px) {
  .alert-box {
    left: 0;
  }
}

.card-shadow {
  box-shadow: 0 0px 12px 0 rgba(187, 187, 187, 0.33);
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(59, 86, 113, 0.05);
}

.table-hover tbody tr:hover {
  background-color: rgba(91, 134, 177, 0.1);
}

.table th {
  border-top: 0;
}

.filter-wrapper > form > .form-group input {
  width: 227px;
}

.filter-wrapper > form button {
  height: 38px;
}

.filter-wrapper > form a {
  height: 38px;
  display: flex;
  align-items: center;
}

.organization-toggle {
  font-size: 22px;
}

.pagination {
  justify-content: center;
  align-items: center;
}

.pagination > li.active span {
  background-color: var(--primary);
  color: #fff;
  cursor: default;
}

.pagination > li.disabled .page-link {
  color: gray;
}

.delete-checklist-btn {
  display: none;
}

.delete-checklist-btn.delete-checklist-btn--visible {
  display: block;
}

.custom-checkbox {
  position: relative;
}

.custom-checkbox > input {
  position: absolute;
  width: 16px;
  height: 16px;
  z-index: 2;
  opacity: 0;
  cursor: pointer;
}

.custom-checkbox > span {
  width: 16px;
  height: 16px;
  display: flex;
  justify-content: center;
  border: 1px solid gray;
  border-radius: 3px;
  transition: all 0.3s;
}

.custom-checkbox > input:checked + span {
  border: 8px solid var(--primary);
  animation: bounce 250ms;
}

.custom-checkbox > input:checked + span:before {
  content: "";
  position: absolute;
  top: 8px;
  left: 4px;
  border-right: 2px solid transparent;
  border-bottom: 2px solid transparent;
  transform: rotate(45deg);
  transform-origin: 0% 100%;
  animation: checked-box 125ms 250ms forwards;
}

@keyframes checked-box {
  0% {
    width: 0;
    height: 0;
    border-color: #fff;
    transform: translate(0, 0) rotate(45deg);
  }
  33% {
    width: 4px;
    height: 0;
    border-color: #fff;
    transform: translate(0, 0) rotate(45deg);
  }
  100% {
    width: 4px;
    height: 8px;
    border-color: #fff;
    transform: translate(0, -8px) rotate(45deg);
  }
}

@keyframes bounce {
  0% {
    transform: scale(1);
  }
  33% {
    transform: scale(0.7);
  }
  100% {
    transform: scale(1);
  }
}

.table-nav .nav-tabs {
  border-bottom: none;
}

.table-nav .nav-tabs .nav-item {
  margin-bottom: 0;
}

button.table-edit-btn,
button.table-del-btn {
  padding: 0;
  border: 0;
  outline: 0;
}

.organization-detail-list {
  list-style: none;
  padding: 0;
}

.organization-detail-list__item h3 {
  font-size: 1rem;
  margin: 0;
  font-weight: 600;
}

.organization-user-list {
  padding: 0 0 0 17px;
}

.organization-keyword-list > li:not(:last-child) {
  margin-right: 10px;
}

.dashboard-card {
  height: 220px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  box-shadow: 0 0px 20px 0 rgba(187, 187, 187, 0.33);
}

.dashboard-card__img {
  border-radius: 50%;
  width: 74px;
  height: 74px;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dashboard-card__img--news {
  color: var(--primary);
  background: rgba(0, 123, 255, 0.05);
}

.dashboard-card__img--location {
  color: var(--success);
  background: rgba(40, 167, 69, 0.05);
}

.dashboard-card__img--date {
  color: var(--secondary);
  background: rgba(108, 117, 125, 0.05);
}

.dashboard-card__img--not-processed {
  color: var(--danger);
  background: rgba(220, 53, 69, 0.05);
}

.dashboard-card__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 12px;
}

.dashboard-card__body h5 {
  margin-bottom: 0;
}

.dashboard-card__body span {
  font-size: 32px;
}

.checklist-th-checkbox {
  width: 10%;
}

.checklist-th-name {
  width: 80%;
}

.checklist-th-actions {
  width: 10%;
}

.modal-content > form {
  margin-bottom: 0;
}

.modal-body {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.modal-body p {
  margin-bottom: 0;
}

.modal-body > .form-group:not(:last-child) {
  margin-bottom: 1rem;
}

.modal-footer button,
.modal-footer input {
  margin-top: 0;
  margin-bottom: 0;
}

.organization-filter-wrapper > form > .form-group input {
  width: 300px;
}

.api-copy-btn {
  position: relative;
}

.api-copy-btn:hover .api-copy-btn__tooltip {
  visibility: visible;
  opacity: 1;
}

.api-copy-btn__tooltip {
  visibility: hidden;
  width: auto;
  max-width: 300px;
  background-color: #343a40;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 10px;
  position: absolute;
  z-index: 1;
  bottom: 150%;
  left: 50%;
  margin-left: -75px;
  opacity: 0;
  transition: opacity 0.3s;
  word-break: break-word;
  white-space: nowrap;
}

.api-token-blur {
  filter: blur(7px);
  user-select: none;
}

nav.navbar {
  background-color: var(--Y5) !important;
}

.navbar-brand {
  color: black !important;
}

.navbar-brand:hover {
  color: var(--prim) !important;
}

#sidebarToggle,
.nav-link {
  color: rgba(0, 0, 0, 0.502) !important;
}

#sidebarToggle:hover,
.nav-link:hover {
  color: black !important;
}

#sidebarToggle:hover .sb-nav-link-icon,
.nav-link:hover .sb-nav-link-icon {
  color: black !important;
}

.sb-sidenav-menu .nav-link:hover {
  color: var(--G40) !important;
}

.sb-sidenav-menu .nav-link:hover .sb-nav-link-icon {
  color: var(--G40) !important;
}

.sb-sidenav-menu .nav-link.active {
  color: white !important;
  background: var(--prim);
}

.sb-sidenav-menu .nav-link.active .sb-nav-link-icon {
  color: white !important;
}

.sb-sidenav-menu .nav-link.active:hover {
  color: white !important;
}

.sb-sidenav-menu .nav-link.active:hover .sb-nav-link-icon {
  color: white !important;
}

.sb-nav-link-icon {
  color: rgba(0, 0, 0, 0.25) !important;
}

.sb-sidenav-menu {
  background-color: var(--sec);
}

.sb-sidenav-menu-heading {
  color: rgba(0, 0, 0, 0.5) !important;
}

.sb-sidenav-footer {
  background-color: var(--Y10) !important;
  color: rgba(0, 0, 0, 0.8);
}

.sb-sidenav {
  /* 4px scroll thumb. 10px margin from right margin */
}

.sb-sidenav ::-webkit-scrollbar {
  width: 20px;
}

.sb-sidenav ::-webkit-scrollbar-track {
  box-shadow: inset 0 0 14px 14px transparent;
  border: solid 6px transparent;
}

.sb-sidenav ::-webkit-scrollbar-thumb {
  box-shadow: inset 0 0 14px 14px rgba(196, 196, 196, 0.6);
  border: solid 6px transparent;
  border-radius: 14px;
}

.sb-sidenav ::-webkit-scrollbar-button {
  display: none;
}

#sidebarToggle {
  position: relative;
}

.sb-topnav .navbar-brand {
  min-width: 204px;
  width: auto;
}

.sb-sidenav-footer {
  word-wrap: break-word;
}

.nav.nav-tabs .nav-link {
  border: 1px solid #e9ecef;
}

.nav.nav-tabs .nav-link.active {
  background-color: #e9ecef;
  font-weight: bold;
}

.nav.nav-tabs .nav-link.active:hover {
  color: rgba(0, 0, 0, 0.502) !important;
}

.dashboard-card__img--news {
  color: var(--prim);
}

.trial-period {
  position: relative;
  padding: 3px 10px;
  background-color: var(--prim);
  color: white;
  font-size: 14px;
  line-height: 28px;
  border-radius: 4px;
  margin-right: 24px;
}

.trial-period span {
  position: absolute;
  top: -8px;
  right: -10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: #eb5757;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
