up-modal-box {
    border-radius: 10px;
    padding: 32px;
}

body {
    font-family: 'nunito';
}


/* bigger font on larger screen*/
/**
@media (min-width: 992px) {

    body,
    .dropdown-item,
    .btn {
        font-size: 1rem;
        line-height: 1.15rem;
    }
}
**/

a,
p {
    overflow-wrap: anywhere;
}

:root {
    --tblr-border-radius: 8px;
    --tblr-body-bg: #f5f4e9;
    --tblr-list-group-item-padding-x: 0;
   
    /*--tblr-border-color: #aaa;*/
}


.alert
{
    --tblr-alert-margin-bottom: 0;
}

/*
.nav-tabs .nav-link.active {
    background-color: white;
    border: none;
    border-bottom: 1px solid white;
}


.nav-pills .nav-link.active {
    background-color: var(--tblr-info);
    color: white;
}

.nav-tabs {
    border-bottom: none;
}
*/


.nav-pills .nav-link.active {
    background-color: var(--tblr-secondary);
    color: var(--tblr-light);
}

.group,
.container {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 1px 15px 1px #0000000a, 0 1px 6px #0000000a;
}

.list-group-item {
    padding: var(--tblr-list-group-item-padding-y) 0;
}

.form-group label {
    font-weight: bold;
    color: #444;
}

.form-group {
    margin-bottom: 24px;
}

.summary {
    height: 1.2rem;
    overflow: hidden;
}


.small-help,
.text-meta {
    color: #888;
    font-size: 0.8rem;
}


.help {
    padding: 20px;
    margin: 20px 0px;
    border: 1px solid #aaa;
    border-radius: 3px;
    background-color: rgb(188, 218, 226);
}

.help h4 {
    color: #1B809E;
    margin-top: 0px;
    margin-bottom: 5px;
    font-size: 18px;
}

.help a {
    text-decoration: underline;
}


.alert a {
    text-decoration: underline;
}


.reaction {
    width: 24px;
    height: 24px;
}


.event-date {
    width: 36px;
    height: 36px;
    border: 2px solid #aaa;
    text-align: center;
    margin-top: auto;
    margin-bottom: auto;
    border-radius: 8px;
    background: #f8f6f3;
    padding: 3px;
    box-sizing: content-box;
}

.square {
    width: 8px;
    height: 8px;
    display: inline-block;
}

.circle {
    width: 8px;
    height: 8px;
    display: inline-block;
    border-radius: 100%;
}

.tag {
    background-color: #eeebe8;
    padding: 3px 8px 3px 8px;
    border-radius: 30px;
    color: #555147;
    text-decoration: none;
    font-size: 12px;
    display: inline-block;
}

.tag:hover {
    background-color: #a7a69a;
    text-decoration: none;
}

.file-embed {
    background-color: #f9f7f1;
    border-radius: 8px;
}

.file-embed:hover {
    background-color: #e4e4d7;
    text-decoration: none;
}

/*
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: normal;
}
*/

/* allow full calendar buttons to wrap */

.fc {
    & .fc-toolbar {
        flex-wrap: wrap;
        gap: .5rem;
    }
}


.sticky-messages {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.bottom-messages {
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: 50000;
    /*width: 100%;*/
}

.js-loader {
    background-color: #4f9f00;
    color: #cdff9b;
    padding: 10px 20px;
    display: none;
    border-top-left-radius: 5px;
}

.js-network-error {
    background-color: #dd1701;
    color: #e9a58c;
    padding: 10px;
    display: none;
}

.messages .alert {
    background-color: #0054a6;
    color: white;
    border-radius: 0;
}




/* tom select*/
.ts-control {
    border: 0;
}

.ts-wrapper {
    padding: 0;
}

.ts-wrapper.multi .ts-control>div {
    padding: 4px 12px;
    border-radius: 5px;

}

.ts-wrapper.multi .ts-control>div.active {
    background-color: var(--tblr-primary);
    color: white;
}


.up-active:is(a, [up-follow], input[type=submit], button[type=submit], button:not([type])) {
    outline: 2px solid rgb(113, 113, 146);
}

.up-loading {
    animation: blink 2s infinite;
}


@keyframes blink {
    50% {
        opacity: .5;
    }
}

/* User selectable dark theme - complete */
body.theme-dark {
  --tblr-body-bg: #17191f;
  --tblr-body-color: #e8eaed;
  --tblr-bg-surface: #20232a;
  --tblr-border-color: #3b414d;
  --tblr-muted: #aeb4bf;
  --tblr-secondary: #aeb4bf;
  --tblr-primary: #7f8cff;
  --tblr-link-color: #9fb0ff;
  --tblr-link-hover-color: #c4ccff;
  background: #17191f !important;
  color: #e8eaed !important;
  color-scheme: dark;
}

body.theme-dark #app,
body.theme-dark main,
body.theme-dark section,
body.theme-dark article,
body.theme-dark .container,
body.theme-dark .container-fluid,
body.theme-dark .card,
body.theme-dark .card-body,
body.theme-dark .card-header,
body.theme-dark .card-footer,
body.theme-dark .modal-content,
body.theme-dark .dropdown-menu,
body.theme-dark .list-group-item,
body.theme-dark .form-fieldset,
body.theme-dark fieldset,
body.theme-dark .tab-content,
body.theme-dark .tab-pane {
  background-color: #20232a !important;
  color: #e8eaed !important;
  border-color: #3b414d !important;
}

body.theme-dark h1,
body.theme-dark h2,
body.theme-dark h3,
body.theme-dark h4,
body.theme-dark h5,
body.theme-dark h6,
body.theme-dark p,
body.theme-dark li,
body.theme-dark label,
body.theme-dark strong,
body.theme-dark span {
  color: #e8eaed;
}

body.theme-dark .text-muted,
body.theme-dark .text-secondary,
body.theme-dark .text-body-secondary,
body.theme-dark .form-text,
body.theme-dark .small-help,
body.theme-dark small {
  color: #aeb4bf !important;
}

body.theme-dark a,
body.theme-dark .nav-link {
  color: #9fb0ff !important;
}

body.theme-dark a:hover,
body.theme-dark .nav-link:hover {
  color: #c4ccff !important;
}

body.theme-dark .nav-tabs {
  border-bottom-color: #444955 !important;
}

body.theme-dark .nav-tabs .nav-link {
  background-color: #20232a !important;
  color: #aab6ff !important;
  border-color: #444955 !important;
}

body.theme-dark .nav-tabs .nav-link.active {
  background-color: #17191f !important;
  color: #ffffff !important;
  border-color: #7f8cff #7f8cff #17191f !important;
}

body.theme-dark input,
body.theme-dark textarea,
body.theme-dark select,
body.theme-dark .form-control,
body.theme-dark .form-select,
body.theme-dark .ts-control,
body.theme-dark .ts-wrapper,
body.theme-dark .ts-dropdown,
body.theme-dark .selectize-input,
body.theme-dark .selectize-dropdown {
  background-color: #111318 !important;
  color: #ffffff !important;
  border-color: #4b5563 !important;
}

body.theme-dark input::placeholder,
body.theme-dark textarea::placeholder {
  color: #9ca3af !important;
}

body.theme-dark table,
body.theme-dark .table,
body.theme-dark table thead,
body.theme-dark table tbody,
body.theme-dark table tfoot,
body.theme-dark table tr,
body.theme-dark table th,
body.theme-dark table td {
  background-color: #20232a !important;
  color: #e8eaed !important;
  border-color: #3b414d !important;
  box-shadow: none !important;
}

body.theme-dark table tbody tr:nth-child(even),
body.theme-dark .table-striped > tbody > tr:nth-of-type(odd) > *,
body.theme-dark .table-striped > tbody > tr:nth-of-type(even) > * {
  background-color: #252936 !important;
  color: #e8eaed !important;
}

body.theme-dark .btn-primary {
  background-color: #5b6ee1 !important;
  border-color: #5b6ee1 !important;
  color: #ffffff !important;
}

body.theme-dark .btn-secondary,
body.theme-dark .btn-default,
body.theme-dark .btn-light,
body.theme-dark .btn-outline-secondary {
  background-color: #343842 !important;
  border-color: #4b5563 !important;
  color: #e8eaed !important;
}

body.theme-dark .badge,
body.theme-dark .tag,
body.theme-dark .rounded-pill {
  background-color: #343842 !important;
  color: #ffffff !important;
  border-color: #4b5563 !important;
}

body.theme-dark .help,
body.theme-dark .alert-info,
body.theme-dark .callout,
body.theme-dark .callout-info {
  background-color: #263545 !important;
  color: #e8f1ff !important;
  border: 1px solid #3f5f7a !important;
}

body.theme-dark .help *,
body.theme-dark .alert-info *,
body.theme-dark .callout *,
body.theme-dark .callout-info * {
  color: #e8f1ff !important;
}

body.theme-dark .card-footer,
body.theme-dark .card-footer *,
body.theme-dark .card-footer.text-body-secondary {
  background-color: #252936 !important;
  color: #c7ccd6 !important;
  border-color: #3b414d !important;
}

body.theme-dark .card-footer i,
body.theme-dark .card-footer svg {
  color: #9fb0ff !important;
}

/* Discussions */
body.theme-dark .discussion,
body.theme-dark .comment,
body.theme-dark .comment-body,
body.theme-dark .activity {
  border-bottom: 1px solid #3b414d !important;
  padding-bottom: 1.5rem !important;
  margin-bottom: 1.5rem !important;
}

body.theme-dark .comment {
  background-color: #1f232c !important;
  border: 1px solid #343b49 !important;
  border-radius: 0.75rem !important;
  padding: 1rem !important;
}

body.theme-dark .comment + .comment {
  margin-top: 1rem !important;
}

/* FullCalendar */
body.theme-dark .fc,
body.theme-dark .fc-view-harness,
body.theme-dark .fc-scrollgrid,
body.theme-dark .fc-scrollgrid-section,
body.theme-dark .fc-scrollgrid-section > td,
body.theme-dark .fc-daygrid,
body.theme-dark .fc-daygrid-body,
body.theme-dark .fc-daygrid-day,
body.theme-dark .fc-daygrid-day-frame,
body.theme-dark .fc-col-header,
body.theme-dark .fc-col-header-cell,
body.theme-dark .fc-theme-standard td,
body.theme-dark .fc-theme-standard th {
  background-color: #20232a !important;
  color: #e8eaed !important;
  border-color: #3b414d !important;
}

body.theme-dark .fc-day-today,
body.theme-dark .fc .fc-daygrid-day.fc-day-today {
  background-color: #263545 !important;
}

body.theme-dark .fc-daygrid-day-number,
body.theme-dark .fc-col-header-cell-cushion {
  color: #9fb0ff !important;
}

body.theme-dark .fc-event,
body.theme-dark .fc-h-event,
body.theme-dark .fc-daygrid-event {
  background-color: #5b6ee1 !important;
  border-color: #7f8cff !important;
  color: #ffffff !important;
}

body.theme-dark .fc-event *,
body.theme-dark .fc-h-event *,
body.theme-dark .fc-daygrid-event * {
  color: #ffffff !important;
}

body.theme-dark .fc-button,
body.theme-dark .fc-button-primary {
  background-color: #243044 !important;
  border-color: #4b5563 !important;
  color: #ffffff !important;
}

body.theme-dark .fc-button-active,
body.theme-dark .fc-button-primary:not(:disabled).fc-button-active {
  background-color: #5b6ee1 !important;
  border-color: #7f8cff !important;
  color: #ffffff !important;
}

/* Unpoly modal / event modal */
body.theme-dark up-modal,
body.theme-dark up-modal-viewport,
body.theme-dark up-modal-box {
  background-color: transparent !important;
  color: #e8eaed !important;
}

body.theme-dark up-modal-box {
  position: relative !important;
  background-color: #20232a !important;
  border: 1px solid #3b414d !important;
  border-radius: 12px !important;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55) !important;
  overflow: hidden !important;
  padding: 2.5rem !important;
}

body.theme-dark up-modal-box > * {
  background-color: #20232a !important;
  color: #e8eaed !important;
}

body.theme-dark up-modal-dismiss {
  position: absolute !important;
  top: 0.75rem !important;
  right: 0.75rem !important;
  width: 2rem !important;
  height: 2rem !important;
  z-index: 50 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-color: #20232a !important;
  border: 1px solid #4b5563 !important;
  border-radius: 0.65rem !important;
  color: #e8eaed !important;
  font-size: 0 !important;
  opacity: 1 !important;
  filter: none !important;
}

body.theme-dark up-modal-dismiss::before {
  content: "×";
  font-size: 1.5rem;
  line-height: 1;
  color: #e8eaed;
}

body.theme-dark up-modal-box [data-bs-toggle="dropdown"],
body.theme-dark up-modal-box .dropdown-toggle {
  margin-right: 2.75rem !important;
}

body.theme-dark up-modal-box h1 .badge,
body.theme-dark up-modal-box h2 .badge,
body.theme-dark up-modal-box h3 .badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  vertical-align: middle !important;
  line-height: 1 !important;
  padding: 0.35rem 0.65rem !important;
  margin-left: 0.5rem !important;
  position: relative !important;
  top: -0.12rem !important;
}
