:root {
  --font-normal:16px;
  --font-small:13px;
  --font-smaller:12px;

  --normal-weight:400;   /* Switch to 300 if you want thinner default text */
  --bold-weight:600;     /* Switch to 700 if you want thicker bold text */

  --border-width:1px;

  --text-title-h1: var(--text-normal);
}

.workspace-leaf-content[data-type='card-board-view'] .view-content {
  padding: 0;
  overflow: hidden;
}

.card-board-container .modal.mod-settings .vertical-tab-header::after {
  display: none;
  content: "";
}

.card-board-view {
  height: 100%;
  background-color: var(--background-primary);
  font-size: var(--font-text-size);
}

.mod-macos.is-hidden-frameless:not(.is-popout-window) .workspace .workspace-tabs.mod-top-right-space .card-board-view .workspace-tab-header-container {
  padding-right: 0;
}

.workspace-split.mod-root .card-board-view .workspace-tab-header.is-active::before, .workspace-split.mod-root .card-board-view .workspace-tab-header.is-active::after {
  box-shadow: inset 0 0 0 var(--tab-outline-width) var(--tab-outline-color), 0 0 0 calc(var(--tab-curve) * 4) var(--background-primary);
}
.workspace-tabs.mod-top-left-space .card-board-view .card-board-container .workspace-tab-header-container:before {
  width: 0;
}

.card-board-view .workspace-drop-overlay {
  transition: none;
  will-change: top, left, width, height;
  transform: '';
  margin-top: var(--header-height);
}

.card-board-view .workspace-tab-header {
  cursor: grab;
}

.card-board-view .workspace-tab-header.is-active {
  background-color: var(--background-primary);
}

.card-board-tab-header-spacer {
  display: flex;
  flex-grow: 1;
  flex-shrink: 1;
  margin-left: -15px;
  -webkit-app-region: no-drag;
}

body:not(.is-grabbing):not(.is-fullscreen) .workspace-tabs.mod-top .card-board-view .workspace-tab-header-spacer {
  -webkit-app-region: no-drag;
}
body:not(.is-grabbing):not(.is-fullscreen).is-hidden-frameless .mod-top .card-board-view .workspace-tab-header-container {
  -webkit-app-region: no-drag;
}

.card-board-view .sidebar-toggle-button {
  padding-left: 5px;
  margin-right: -5px;
  padding-top: 11px;
}

.card-board-boards {
  display: grid;
  padding: 1em;
  padding-bottom: 0.5em;
  background-color: var(--background-primary);
  overflow-x: auto;
}

.card-board-board {
  grid-column-start: 1;
  grid-row-start: 1;
}

.card-board-column-with-beacons {
  display: flex;
  flex-direction: row;
}

.card-board-columns {
  display: flex;
}

.card-board-columns::after {
  content: "";
  flex: 0 0 1em;
}

.card-board-column {
  flex: 0 0 auto;
  padding: 0.6em 1em 1em 1em;
  margin-right: 15px;
  width: 20em;
  cursor: grab;
  background-color: var(--background-secondary);
  border-radius: 3px;
  border: var(--border-width) solid var(--background-modifier-border);
}

div[dir=rtl] .card-board-column {
  margin-left: 15px;
  margin-right: 0;
}

.card-board-column.collapsed {
  width: 2em;
  min-width: 2em;
  flex-grow: 0;
  overflow: visible;
  margin: 0;
  margin-right: 15px;
  padding: 0.6em 0 0 0.3em;
}

div[dir=rtl] .card-board-column.collapsed {
  margin-left: 15px;
  margin-right: 0;
  padding: 0.6em 0.3em 0 0;
}

.card-board-column-header {
  font-weight: var(--bold-weight);
  margin-bottom: 0.6em;
  display: flex;
  align-items: center;
}


div[dir=ltr] .card-board-column.collapsed .card-board-column-header {
  writing-mode: vertical-lr;
}

div[dir=rtl] .card-board-column.collapsed .card-board-column-header {
  writing-mode: vertical-rl;
}

.card-board-column.collapsed .card-board-column-header .sub-text {
  font-weight: var(--normal-weight);
  margin-top: 0.3em;
  margin-bottom: 0.3em;
}

.arrow-down {
  width: 0;
  height: 0;
  border-left: 0.4em solid transparent;
  border-right: 0.4em solid transparent;
  border-top: 0.4em solid var(--text-normal);
  margin: 0.5em 0 0.5em 0;
  cursor: pointer;
}

div[dir=rtl] .arrow-down {
  order: 3;
}

div[dir=ltr] .arrow-right {
  width: 0;
  height: 0;
  border-top: 0.4em solid transparent;
  border-bottom: 0.4em solid transparent;
  border-left: 0.4em solid var(--text-normal);
  margin: 0 0.4em 0 -0.2em;
  cursor: pointer;
}

div[dir=rtl] .arrow-right {
  width: 0;
  height: 0;
  border-top: 0.4em solid transparent;
  border-bottom: 0.4em solid transparent;
  border-right: 0.4em solid var(--text-normal);
  margin: 0 -0.2em 0 0.4em;
  cursor: pointer;
}

ul.card-board-column-list {
  display: grid;
  grid-gap: 0.5em;
  max-height: calc(100vh - 16em);
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
}

ul.card-board-column-list > li.card-board-card::before {
  content: "";
}

.card-board-column.collapsed .card-board-card {
  display: none;
}

.card-board-card {
  border-radius: 3px;
  border: var(--border-width) solid var(--background-modifier-border);
  background-color: var(--background-primary);
  padding: 0;
  cursor: auto;
  user-select: text;
  -webkit-user-select: text;
  grid-column-gap: 0.25em;
  display: grid;
  grid: "mark contents"
        / 5px auto;
  font-family: var(--font-text);
}

.card-board-card-highlight-area {
  grid-area: mark;
}

.card-board-card-highlight-area.critical {
  background-color: var(--text-error);
}

.card-board-card-highlight-area.good {
  background-color: var(--text-success);
}

.card-board-card-highlight-area.important {
  background-color: var(--text-accent);
}

.card-board-card-content-area {
  grid-area: contents;
  display: grid;
  padding: 0.5em 0;
  grid: "tags        tags"
        "checkbox    title"
        "subtasks    subtasks"
        "notes       notes"
        "footer      footer"
        / auto       minmax(0, 1fr);
}

.card-board-card-tag-area {
  grid-area: tags;
  margin: 0 0.2em 0.5em 0.2em;
}

.card-board-card input.task-list-item-checkbox {
  grid-area: checkbox;
  align-self: top;
  margin: 0.2em;
  width: 1em;
  height: 1em;
  font-size: 1em;
}

.card-board-card input.task-list-item-checkbox:after {
  width: 1em;
  height: 1em;
  font-size: 1em;
}

.card-board-card-title {
  grid-area: title;
  margin: 0 0.2em;
  font-weight: var(--bold-weight);
  display: -webkit-box;
  color: var(--text-title-h1);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-board-card-tag-area p {
  display: inline;
}

.card-board-card-title p {
  display: inline;
}

.card-board-card-subtasks-area {
  grid-area: subtasks;
  font-size: var(--font-small);
  margin-top: 0.5em;
}

/* fixes an issue with themes showing border on the left of lists */
.card-board-card-subtasks-area > ul::before {
  border-style: none;
}

.card-board-card-subtask {
  display: grid;
  grid: "checkbox    title"
        / auto       minmax(0, 1fr);
}

.card-board-card-subtask .task-list-item-checkbox {
  font-size: var(--font-small);
}

.card-board-card-subtask .card-board-card-title {
  font-weight: var(--normal-weight);
  font-size: var(--font-small);
}

.card-board-card-notes-area {
  grid-area: notes;
  font-size: var(--font-small);
  margin: 0 0.2em;
}

.card-board-card-notes-area > ul::before {
  border-style: none;
}

.card-board-card-notes-area button {
  font-size: var(--font-small);
  padding: 0.5em 0.5em;
  line-height: 1em;
  height: auto;
}

.card-board-card-footer-area {
  grid-area: footer;
  display: grid;
  grid: "due              actions"
        / minmax(0, 1fr)  auto;
  font-size: var(--font-small);
  margin: 0.5em 0.2em 0 0.2em;
}

.card-board-card-action-area-due {
  grid-area: due;
  color: var(--text-faint);
}

.card-board-card-action-area-buttons {
  grid-area: actions;
  display: grid;
  grid-auto-flow: column;
  grid-gap: 0.5em;
  margin: 0 0.2em;
}

.card-board-card-action-area-button {
  cursor: pointer;
}

.setting-items-inner {
  position: relative;
  height: auto;
}

.cardboard-settings-columns-list {
  display: flex;
  flex-direction: column;
  width: 100%;
}

h3.setting-heading-compact {
  margin-block-end: 0;
}

.example-stamp {
  font-weight: var(--bold-weight);
}

.cardboard-settings-column-item {
  display: grid;
  grid-template-columns: 2em 5em 1fr 1fr 1.5em;
  align-items: center;
  gap: var(--size-4-2);
  border: var(--border-width) solid var(--background-modifier-border);
  border-radius: 4px;
  background-color: var(--background-secondary);
  width: 100%;
  padding: var(--size-4-1) var(--size-4-2);
  margin-bottom: 0.4em;
}

.cardboard-settings-column-item-button {
  display: grid;
  align-items: center;
  cursor: pointer;
}

.cardboard-settings-column-item-detail {
  display: grid;
  align-items: center;
}

.cardboard-settings-column-item-type {
  font-size: 0.7em;
}

.cardboard-settings-column-item-controls {
  display: flex;
  flex-flow: row nowrap;
  justify-content: flex-start;
  align-items: center;
  gap: var(--size-4-2);
}

.cardboard-settings-columns-button {
  padding-bottom: 0.75em;
}

.vertical-tab-header-group-title-icon {
  justify-self: end;
  cursor: pointer;
  float: right;
}

.modal.edit-date {
  overflow: visible;
}

.modal.mod-settings {
  width: 80%;
}

.card-board-view .card-board-dragable {
  cursor: grab;
}

.card-board-view .vertical-tab-nav-item {
  padding-right: 1.5em;
  min-height: 1.9em;
}

.modal-form {
  display: grid;
  grid-gap: 1.5em;
  padding-top: 1.3em;
  padding-bottom: 1.5em;
  border-bottom: 1px solid var(--background-modifier-border);
}

.form-item {
  display: grid;
  grid: "words control";
}

.form-item-name {
  grid-area: words;
}

.form-item-control {
  grid-area: control;
  justify-self: end;
}

.dialog-buttons {
  display: grid;
  grid-auto-flow: column;
  justify-content: center;
  padding-top: 2em;
}

.modal-form .dialog-buttons {
  border-top: 1px solid var(--background-modifier-border);
}

.setting-item-control textarea {
  min-height: 10em;
  min-width: 22em;
}

.multiselect-items {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  background: var(--background-modifier-form-field);
  border: 1px solid var(--background-modifier-border);
  border-radius: 4px;
  color: var(--text-normal);
  padding: 4px 5px;
  font-size: var(--font-small);
  min-width: 217px;
  max-width: 417px;
  overflow-x: auto;
  gap: 3px;
}

.multiselect-items.mod-faux {
  justify-content: flex-end;
  background: var(--background-modifier-form-field);
  border: 0px;
  font-size: var(--font-ui-medium);
}

.multiselect-items input.multiselect-input {
  border: 0;
  min-width: 100px;
  font-size: var(--font-small);
}

.multiselect-items input.multiselect-input:focus {
  border: 0;
  box-shadow: none;
}

.multiselect-item {
  white-space: nowrap;
}

.multiselect-item.selected {
  cursor: pointer;
  vertical-align: middle;
}

.multiselect-item-key {
  background-color: var(--background-secondary-alt);
  border: 1px solid var(--background-modifier-border);
  border-right: 0px;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
  padding-left: 4px;
  padding-right: 4px;
  padding-bottom: 2px;
  line-height: 1.5em;
  vertical-align: middle;
}

.multiselect-item-single {
  background-color: var(--background-secondary-alt);
  border: 1px solid var(--background-modifier-border);
  border-radius: 4px;
  padding-left: 4px;
  padding-right: 4px;
  padding-bottom: 2px;
  line-height: 1.5em;
  vertical-align: middle;
}

.multiselect-item.selected .multiselect-item-key {
  background-color: var(--text-muted);
  color: var(--text-on-accent);
  border-right: 0.5px solid var(--text-on-accent);
}

.multiselect-item.selected .multiselect-item-value {
  background-color: var(--text-muted);
  color: var(--text-on-accent);
}

.multiselect-items input.multiselect-input {
  padding: 2px;
}

.multiselect-item-value {
  background-color: var(--background-primary-alt);
  border: 1px solid var(--background-modifier-border);
  border-left: 0px;
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
  padding-left: 4px;
  padding-right: 4px;
  padding-bottom: 2px;
  line-height: 1.5em;
  vertical-align: middle;
}


.card-board-view .vertical-tab-content {
  position: relative;
}

.card-board-view .modal-close-button {
  z-index: 1;
}

.card-board-view .suggestion-container {
  position: absolute;
  display: grid;
  grid-auto-flow: row;
  grid-gap: 0.5em;
  overflow: auto;
  padding: 5px 8px;
  font-size: var(--font-small);
  text-align: left;
  line-height: 1em;
  max-height: 400px;
}

.card-board-view .suggestion-container::-webkit-scrollbar {
  width: 8px;
}

.card-board-view .suggestion-container::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.card-board-view .suggestion-container::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.card-board-view .suggestion-section {
  border-top: 1px solid var(--background-modifier-border);
  padding-top: 0.5em;
}

.card-board-view .suggestion-section:first-child {
  border-top: none;
}

.card-board-view .suggestion-section-heading {
  color: var(--text-faint);
  font-size: var(--font-smaller);
  font-weight: var(--bold-weight);
  margin-bottom: 3px;
}

.card-board-view .suggestion-item {
  padding-left: 5px;
  font-size: var(--font-small);
  line-height: 1.3em;
}

.setting-item-control .suggestion-item:hover {
  background-color: var(--background-secondary);
}



.datepicker-container {
  position: relative;
}

.datepicker-input:focus {
  outline: 0;
}

.datepicker-input.datepicker-error {
  background-color: rgba(var(--background-modifier-error-rgb), 0.2);
}

.datepicker-picker {
  position: absolute;
  border: 1px solid #CCC;
  border-radius: 3px;
  z-index: 100;
  background-color: white;
}

.datepicker-header, .datepicker-weekdays {
  background: var(--background-secondary);
}

.datepicker-header {
  display: flex;
  align-items: center;
}

.datepicker-month-container {
  flex: 1 1 auto;
  padding-top: 0.5em;
  display: flex;
  flex-direction: column;
}

.datepicker-month, .datepicker-year {
  flex: 1 1 auto;
  cursor: default;
  text-align: center;
}

.datepicker-year {
  font-size: var(--font-small);
  font-weight: 700;
}

.datepicker-this-month-jump-container {
  text-align: center;
  background: var(--background-secondary);
}

.datepicker-this-month-jump {
  cursor: pointer;
  color: var(--interactive-accent);
}

.datepicker-prev-container, .datepicker-next-container {
  cursor: pointer;
  padding: 8px;
}

.datepicker-prev, .datepicker-next {
  display: block;
  width: var(--font-smaller);
  height: var(--font-smaller);
  border-left: 2px solid rgba(0,0,0,0.54);
  border-bottom: 2px solid rgba(0,0,0,0.54);
}

.datepicker-prev:hover, .datepicker-next:hover {
  border-left-color: #BBB;
  border-bottom-color: #BBB;
}

.datepicker-prev {
  transform: rotate(45deg);
}

.datepicker-next {
  transform: rotate(-135deg);
}

.datepicker-table {
  border-spacing: 0;
  border-collapse: collapse;
  font-size: var(--font-smaller);
}

.datepicker-table td {
  width: 2em;
  height: 2em;
  text-align: center;
  border-radius: 3px;
}

.datepicker-dow {
  border-bottom: 1px solid #CCC;
  cursor: default;
}

.datepicker-day {
  cursor: pointer;
}
.datepicker-day:hover {
  background: #F2F2F2;
}

.datepicker-disabled {
  cursor: default;
  color: #DDD;
}
.datepicker-disabled:hover {
  background: inherit;
}

.datepicker-picked {
  color: white;
  background: var(--interactive-accent);
}

.datepicker-picked:hover {
  background: var(--interactive-accent);
}

.datepicker-today {
  font-weight: bold;
  color: var(--interactive-accent);
}

.datepicker-other-month {
  color: #AAA;
}

.datepicker-other-month.datepicker-disabled {
  color: #EEE;
}

.datepicker-other-month.datepicker-picked {
  color: white;
}
