:root {
  --color-primary: #7c4dff;
  --color-primary-hover: #651fff;
  --color-primary-soft: #b39ddb;
  --color-primary-surface: #ede7f6;
  --color-primary-focus: rgba(124, 77, 255, 0.2);
  --color-success-accent: #69f0ae;
  --color-success-accent-hover: #5be7a2;
  --color-success-strong: #087a43;
  --font-sans:
    Inter, "Avenir Next", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --text-strong: #302a3d;
  --text-body: #514a5e;
  --text-muted: #7d758a;
  --text-caption: #9992a3;
  --bulma-family-primary: var(--font-sans);
  --bulma-primary-h: 256deg;
  --bulma-primary-s: 100%;
  --bulma-primary-l: 65%;
}

html {
  background-color: #f7f4ef;
  color-scheme: light;
  font-family: var(--font-sans);
  min-height: 100%;
  text-rendering: optimizeLegibility;
}

body,
button,
input,
select,
textarea {
  font-family: var(--font-sans);
}

body {
  background-color: #f7f4ef;
  color: var(--text-body);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

.content,
.notification,
.modal-card-body {
  overflow-wrap: anywhere;
}

.folder-text-editor .modal-card {
  background: #fffdfa;
  border-radius: 1rem;
  max-height: calc(100vh - 2rem);
  max-width: 48rem;
  overflow: hidden;
  width: calc(100vw - 2rem);
}

.folder-text-editor .modal-card-head,
.folder-text-editor .modal-card-foot {
  background: #fffdfa;
  border-color: #e2ddd5;
}

.folder-text-editor .modal-card-body {
  background: #f7f4ef;
  color: #302a3d;
  overflow: auto;
}

.folder-text-editor .modal-card-title,
.folder-text-editor .label {
  color: #302a3d;
}

.folder-text-editor .input,
.folder-text-editor .textarea {
  background: #fff;
  border-color: #d9d5cd;
  color: #302a3d;
}

.folder-text-editor .input[readonly],
.folder-text-editor .textarea[readonly] {
  background: #f7f4ef;
  color: #514a5e;
}

.ql-editor {
  overflow-wrap: break-word;
  word-break: normal;
}

.table-container {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.title,
h1,
h2,
h3 {
  letter-spacing: -0.025em;
}

.title {
  color: var(--text-strong);
  line-height: 1.2;
}

.subtitle {
  color: var(--text-muted);
  line-height: 1.6;
}

.button.is-primary {
  background-color: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
  color: #fff !important;
}

.button.is-primary:hover,
.button.is-primary:focus {
  background-color: var(--color-primary-hover) !important;
  border-color: var(--color-primary-hover) !important;
}

.button {
  font-weight: 600;
  letter-spacing: -0.01em;
  min-width: 6rem;
}

.legal-page {
  background: #f7f4ef;
  min-height: 100vh;
}

.legal-navbar {
  background: var(--color-primary);
  min-height: 3.5rem;
}

.legal-navbar img {
  filter: brightness(0) invert(1);
  height: 2rem;
}

.legal-panel {
  background: #fffdfa;
  border: 1px solid #d9d5cd;
  color: #4c5d73;
  margin: 2rem auto;
  max-width: 42rem;
  padding: 2rem;
}

.legal-panel .title {
  color: #27364a;
}

.legal-panel .subtitle {
  color: #718096;
  line-height: 1.6;
}

.legal-panel .label {
  color: #4c5d73;
  font-weight: 600;
}

.legal-panel .select,
.legal-panel .select select {
  width: 100%;
}

.legal-panel .select select {
  background-color: #fffdfa;
  border-color: #d9d5cd;
  color: #27364a;
  box-shadow: none;
}

.legal-panel .select select:focus {
  border-color: var(--color-primary-soft);
  box-shadow: 0 0 0 0.125em var(--color-primary-focus);
}

.legal-panel .select select:disabled {
  background-color: #f1eee8;
  color: #4c5d73;
  opacity: 1;
}

.legal-registration-box {
  background-color: #fffdfa;
  border: 1px solid #d9d5cd;
  border-radius: 0.5rem;
  color: #4c5d73;
  padding: 1.25rem;
}

.legal-registration-box .title {
  color: #27364a;
  margin-bottom: 0.75rem;
}

.legal-registration-intro {
  color: #718096;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.legal-registration-box .label {
  color: #4c5d73;
  font-weight: 600;
}

.legal-registration-box .select,
.legal-registration-box .select select {
  width: 100%;
}

.legal-registration-box .select select {
  background-color: #fffdfa;
  border-color: #d9d5cd;
  color: #27364a;
  box-shadow: none;
}

.legal-registration-box .select select:focus {
  border-color: var(--color-primary-soft);
  box-shadow: 0 0 0 0.125em var(--color-primary-focus);
}

.legal-region-notice {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.legal-selection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media screen and (min-width: 769px) {
  .legal-selection-grid .field > .label {
    display: flex;
    min-height: 3rem;
    align-items: flex-start;
  }
}

.legal-document-group + .legal-document-group {
  margin-top: 2rem;
}

.legal-document-group .title {
  margin-bottom: 0.75rem;
}

.legal-document-note {
  color: #718096;
  font-size: 0.95rem;
  line-height: 1.5;
}

.legal-document-description {
  display: block;
  margin-top: 0.25rem;
  color: #667085;
  font-size: 0.875rem;
  line-height: 1.4;
}

.legal-document-list {
  border: 1px solid #d9d5cd;
  border-radius: 0.5rem;
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
}

.legal-document-list li {
  border-bottom: 1px solid #e8e3da;
  padding: 0.9rem 1rem;
}

.legal-document-list li:last-child {
  border-bottom: 0;
}

.legal-document-list a {
  color: var(--color-primary);
  font-weight: 600;
}

.legal-consent {
  display: block;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

@media screen and (max-width: 768px) {
  .legal-selection-grid {
    grid-template-columns: 1fr;
  }

  .legal-panel {
    margin: 1rem;
    padding: 1.25rem;
  }
}
/* Quill'in gömülü varsayılanı küçük kaldığı için tüm düzenleyicilerde iki piksel büyütülür. */
.ql-editor {
  font-size: calc(1rem + 2px);
}

/* Uygulama çubuğundaki öğeler her ekran genişliğinde görünür kalır. */
.app-bar {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  position: relative;
  z-index: 90;
}

.app-bar .navbar-brand {
  flex: 0 0 auto;
}

.app-bar .navbar-menu {
  align-items: flex-start;
  background: transparent;
  box-shadow: none;
  display: flex;
  flex: 1 1 15rem;
  min-width: 0;
  padding: 0;
}

.app-bar .navbar-end {
  align-items: center;
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.app-bar .navbar-item {
  flex: 0 0 auto;
}

@media screen and (max-width: 760px) {
  .app-bar {
    flex-wrap: wrap;
  }

  .app-bar .navbar-menu {
    align-items: flex-start;
    flex: 0 0 100%;
    justify-content: flex-end;
    max-width: 100%;
    width: 100%;
  }

  .app-bar .navbar-end {
    display: inline-flex;
    flex: 0 0 max-content;
    flex-wrap: nowrap;
    justify-content: flex-end;
    margin-left: auto;
    max-width: 100%;
    width: max-content !important;
  }

  .app-bar .navbar-end > .navbar-item {
    padding-left: 0.35rem;
    padding-right: 0.35rem;
  }
}

.app-bar .notification-button {
  align-items: center;
  background: rgba(255, 248, 214, 0.14);
  border: 1px solid rgba(255, 235, 151, 0.55);
  border-radius: 0.85rem;
  box-shadow:
    0 0.35rem 0.9rem rgba(47, 28, 78, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  color: #ffefa6;
  display: inline-flex;
  font-size: 0;
  height: 2.5rem;
  justify-content: center;
  padding: 0;
  position: relative;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
  width: 2.5rem;
}

.app-bar .notification-button::before {
  background: currentColor;
  content: "";
  height: 1.25rem;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8'%3E%3Cpath d='M18 8a6 6 0 0 0-12 0c0 7-3 7-3 9h18c0-2-3-2-3-9'/%3E%3Cpath d='M13.7 21a2 2 0 0 1-3.4 0'/%3E%3C/svg%3E")
    center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8'%3E%3Cpath d='M18 8a6 6 0 0 0-12 0c0 7-3 7-3 9h18c0-2-3-2-3-9'/%3E%3Cpath d='M13.7 21a2 2 0 0 1-3.4 0'/%3E%3C/svg%3E")
    center / contain no-repeat;
  width: 1.25rem;
}

.app-bar .notification-button:hover,
.app-bar .notification-button:focus-visible {
  background: rgba(255, 244, 190, 0.24);
  border-color: rgba(255, 235, 151, 0.9);
  color: #fff8d5;
  outline: none;
  transform: translateY(-0.08rem);
}

.notification-badge {
  align-items: center;
  background: #d95757;
  border: 2px solid var(--color-primary);
  border-radius: 9999px;
  color: #fff;
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 700;
  justify-content: center;
  line-height: 1;
  min-height: 1.25rem;
  min-width: 1.25rem;
  padding: 0.1rem 0.25rem;
  position: absolute;
  right: -0.55rem;
  top: -0.45rem;
}

.notification-badge[hidden] {
  display: none;
}

.notification-drawer-backdrop {
  background: rgba(18, 31, 48, 0.34);
  border: 0;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity 0.18s ease;
  z-index: 100;
}

.notification-drawer {
  background: #fffdfa;
  border-left: 1px solid #d9d5cd;
  bottom: 0;
  box-shadow: -0.6rem 0 1.4rem rgba(39, 54, 74, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: fixed;
  right: 0;
  top: var(--notification-drawer-top, 0px);
  transform: translateX(102%);
  transition: transform 0.2s ease;
  width: 22rem;
  z-index: 110;
}

body.has-notification-drawer .notification-drawer {
  transform: translateX(0);
}

.notification-drawer-header {
  align-items: center;
  border-bottom: 1px solid #e3ded5;
  display: flex;
  justify-content: space-between;
  padding: 0.9rem 1rem;
}

.notification-drawer-title {
  color: #27364a;
  font-size: 0.95rem;
  font-weight: 700;
}

.notification-drawer-close {
  background: transparent;
  border: 0;
  color: #718096;
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
}

.notification-drawer-content {
  direction: rtl;
  display: grid;
  gap: 0.7rem;
  overflow-y: auto;
  padding: 0.9rem 0.7rem 1.5rem;
}

.notification-drawer-content > * {
  direction: ltr;
}

.notification-drawer-status {
  color: #718096;
  font-size: 0.9rem;
  margin: 0.35rem;
}

.notification-drawer-card {
  background: #fff;
  border: 1px solid #d9d5cd;
  border-radius: 0.7rem;
  color: #27364a;
  display: block;
  padding: 0.8rem;
  text-decoration: none;
}

.notification-drawer-card.is-unread {
  background: var(--color-success-accent);
  border-color: #2dd881;
  border-left: 0.3rem solid var(--color-success-strong);
  color: #174d31;
}

.notification-drawer-card:hover,
.notification-drawer-card:focus-visible {
  border-color: var(--color-primary-soft);
  box-shadow: 0 0 0 0.125rem rgba(120, 144, 176, 0.16);
}

.notification-drawer-card.is-unread:hover,
.notification-drawer-card.is-unread:focus-visible {
  background: var(--color-success-accent-hover);
  border-color: var(--color-success-strong);
}

.notification-drawer-card.is-read {
  background: #f3f1ed;
  border-color: #e2ddd5;
  color: #81798d;
  opacity: 0.72;
}

.notification-drawer-card.is-read:hover,
.notification-drawer-card.is-read:focus-visible {
  border-color: #cfc8be;
  opacity: 0.9;
}

.notification-drawer-card-title {
  align-items: center;
  display: flex;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.notification-drawer-unread-icon {
  color: var(--color-success-strong);
  font-size: 0.78rem;
  line-height: 1;
}

.notification-drawer-announcement-icon {
  font-size: 1rem;
  line-height: 1;
}

.notification-drawer-announcement-meta {
  color: #718096;
  font-size: 0.72rem;
  line-height: 1.45;
  margin-top: 0.35rem;
}

.notification-drawer-card-detail,
.notification-drawer-card-meta {
  color: #718096;
  font-size: 0.8rem;
  margin-top: 0.28rem;
}

.notification-drawer-card-detail {
  white-space: pre-line;
}

.notification-drawer-card-meta {
  font-size: 0.72rem;
  white-space: pre-line;
}

.notification-drawer-card.is-unread .notification-drawer-card-detail,
.notification-drawer-card.is-unread .notification-drawer-card-meta,
.notification-drawer-card.is-unread .notification-drawer-announcement-meta {
  color: #286342;
}

.notification-drawer-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
  margin-top: 0.75rem;
}

.notification-drawer-card-actions .button {
  min-width: auto;
}

.notification-drawer-card-actions .button.is-primary {
  background: var(--color-primary);
  border-color: transparent;
  color: #fff;
}

.notification-drawer-load-more {
  display: flex;
  justify-content: center;
  padding-top: 0.2rem;
}

.notification-drawer-load-more .button {
  min-width: auto;
}

.app-bar .navbar-item.has-dropdown {
  position: relative;
}

.app-bar .navbar-link::after {
  transition: transform 0.18s ease;
}

.app-bar .navbar-link[aria-expanded="true"]::after {
  transform: rotate(135deg);
}

.app-bar .navbar-dropdown {
  background: #fffdfa !important;
  background-image: none !important;
  border: 1px solid #e2ddd5;
  border-radius: 0.9rem !important;
  box-shadow: 0 1rem 2.4rem rgba(36, 28, 50, 0.18);
  display: block;
  inset-inline-end: 0.5rem;
  inset-inline-start: auto;
  isolation: isolate;
  min-width: 16rem;
  opacity: 0;
  padding: 0.5rem;
  pointer-events: none;
  position: absolute;
  top: calc(100% - 0.25rem);
  transform: translateY(-0.35rem);
  transition:
    opacity 0.16s ease,
    transform 0.16s ease,
    visibility 0.16s ease;
  visibility: hidden;
}

.app-bar .navbar-dropdown .navbar-item {
  align-items: center;
  background-color: #fffdfa !important;
  background-image: none !important;
  border-radius: 0.65rem;
  color: #2f2938 !important;
  display: flex;
  font-size: 0.88rem;
  font-weight: 650;
  gap: 0.7rem;
  line-height: 1.35;
  min-height: 2.65rem;
  padding: 0.7rem 0.8rem;
  transition:
    background-color 0.16s ease,
    color 0.16s ease,
    transform 0.16s ease;
  white-space: normal;
}

.app-bar .navbar-dropdown .navbar-item:hover,
.app-bar .navbar-dropdown .navbar-item:focus-visible {
  background-color: #f0ebfa !important;
  background-image: none !important;
  color: #4b2f91 !important;
  outline: none;
  transform: translateX(0.12rem);
}

.app-bar .navbar-dropdown .navbar-divider {
  background: #e4ddd4;
  height: 1px;
  margin: 0.35rem 0.45rem;
}

.app-bar .home-navigation-icon {
  align-items: center;
  background: #f1edf8;
  border: 1px solid #e4ddef;
  border-radius: 0.5rem;
  color: var(--color-primary);
  display: inline-flex;
  flex: 0 0 2rem;
  height: 2rem;
  justify-content: center;
}

.app-bar .home-navigation-icon svg {
  fill: none;
  height: 1rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 1rem;
}

.app-bar .navbar-dropdown [data-logout],
.app-bar .navbar-dropdown [data-logout-all] {
  color: #8f3030 !important;
}

.app-bar .navbar-dropdown [data-logout] .home-navigation-icon,
.app-bar .navbar-dropdown [data-logout-all] .home-navigation-icon {
  background: #fff0ee;
  border-color: #f3d6d2;
  color: #a73f3f;
}

.app-bar .navbar-dropdown [data-logout]:hover,
.app-bar .navbar-dropdown [data-logout]:focus-visible,
.app-bar .navbar-dropdown [data-logout-all]:hover,
.app-bar .navbar-dropdown [data-logout-all]:focus-visible {
  background-color: #fff0ee !important;
  color: #762626 !important;
}

.app-bar .navbar-item.has-dropdown:hover .navbar-dropdown,
.app-bar .navbar-item.has-dropdown:focus-within .navbar-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

@media (hover: none), (pointer: coarse) {
  .app-bar .navbar-item.has-dropdown .navbar-dropdown {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.35rem);
    visibility: hidden;
  }

  .app-bar .navbar-item.has-dropdown.is-active .navbar-dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
  }
}

.app-bar .user-avatar {
  aspect-ratio: 1;
  flex: 0 0 2.5rem;
  line-height: 1;
  padding: 0;
  position: relative;
}

.app-bar .user-avatar > img {
  display: block !important;
  height: 100% !important;
  inset: 0;
  max-height: none !important;
  max-width: none !important;
  object-fit: cover;
  object-position: center;
  position: absolute;
  width: 100% !important;
}

.app-bar [data-favorite-board-shortcuts] {
  min-width: 0;
}

.app-bar .navbar-brand-link {
  display: inline-flex;
}

.main-board-toggle {
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  font-size: 1.25rem;
  padding: 0.5rem;
}

.main-board-drawer-backdrop {
  background: rgba(18, 31, 48, 0.34);
  border: 0;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity 0.18s ease;
  z-index: 60;
}

.main-board-drawer {
  background: #fffdfa;
  border-right: 1px solid #ded9e5;
  bottom: 0;
  box-shadow: 0.4rem 0 1.2rem rgba(39, 54, 74, 0.08);
  display: flex;
  flex-direction: column;
  left: 0;
  overflow: hidden;
  position: fixed;
  top: var(--notification-drawer-top, 3.5rem);
  transform: translateX(-102%);
  transition: transform 0.2s ease;
  width: 17rem;
  z-index: 70;
}

[data-main-boards].has-board-drawer .main-board-drawer {
  transform: translateX(0);
}

[data-main-boards].has-board-drawer .main-board-drawer-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.main-board-drawer-header {
  align-items: center;
  background: #fffdfa;
  border-bottom: 1px solid #e2dced;
  display: flex;
  justify-content: space-between;
  min-height: 4rem;
  padding: 1rem 1.1rem;
}

.main-board-drawer-title {
  color: #554d61;
  font-size: 0.92rem;
  font-weight: 700;
}

.main-board-drawer-close {
  align-items: center;
  background: #fff;
  border: 1px solid #ded7ea;
  border-radius: 50%;
  color: #718096;
  cursor: pointer;
  display: inline-flex;
  font-size: 1.3rem;
  height: 2rem;
  justify-content: center;
  padding: 0 0 0.12rem;
  width: 2rem;
}

.main-board-drawer-content {
  overflow-y: auto;
  padding: 0.35rem 0 1.5rem;
}

.main-board-drawer-section {
  padding: 0.85rem 0.85rem 0.2rem;
}

.main-board-drawer-section:not([hidden]) + .main-board-drawer-section {
  border-top: 1px solid #eeeae3;
  margin-top: 0.65rem;
  padding-top: 1rem;
}

.main-board-drawer-heading {
  color: #706878;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  margin: 0 0 0.45rem 0.35rem;
  text-transform: uppercase;
}

.main-board-drawer-list {
  display: grid;
  gap: 0.15rem;
}

.main-board-drawer-row {
  align-items: center;
  background-color: #fffdfa;
  display: flex;
  gap: 0.5rem;
  min-height: 2.7rem;
  min-width: 0;
  padding: 0.2rem 0.3rem;
}

.main-board-drawer-row:hover {
  background-color: #f3effb;
}

.main-board-drawer-color {
  align-items: center;
  display: inline-flex;
  flex: 0 0 1.55rem;
  height: 1.55rem;
  justify-content: center;
}

.main-board-drawer-color::after {
  background-color: currentColor;
  content: "";
  height: 1.15rem;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='4' y='5' width='16' height='14' rx='2'/%3E%3Cpath d='M9 5v14M9 10h11'/%3E%3C/svg%3E")
    center / contain no-repeat;
  width: 1.15rem;
}

.main-board-drawer-link {
  background: transparent;
  border: 0;
  color: #27364a;
  cursor: pointer;
  display: flex;
  flex: 1;
  flex-direction: column;
  font: inherit;
  min-width: 0;
  padding: 0.3rem 0;
  text-align: left;
}

.main-board-drawer-name,
.main-board-drawer-owner {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.main-board-drawer-name {
  font-size: 0.82rem;
  font-weight: 600;
}

.main-board-drawer-owner {
  color: #8a96a6;
  font-size: 0.68rem;
}

.main-board-drawer-favorite {
  background: transparent;
  border: 0;
  color: #b4bbc5;
  cursor: pointer;
  font-size: 1.2rem;
  height: 1.75rem;
  padding: 0;
  width: 1.75rem;
}

.main-board-drawer-favorite:hover,
.main-board-drawer-favorite:focus-visible {
  color: #b47c0c;
  outline: none;
}

.main-board-drawer-favorite.is-active {
  color: #d49a2a;
}

.main-board-drawer-list .main-board-empty {
  color: #718096;
  font-size: 0.76rem;
  padding: 0.3rem 0.35rem 0.65rem;
}

@media screen and (min-width: 769px) {
  .has-initial-board-drawer [data-main-boards] {
    padding-left: 18.5rem;
  }

  .has-initial-board-drawer [data-main-board-drawer] {
    transform: translateX(0);
    transition: none;
  }

  [data-main-boards].has-board-drawer {
    padding-left: 18.5rem;
  }

  [data-main-boards].has-board-drawer .main-board-drawer-backdrop {
    display: none;
  }
}

@media screen and (max-width: 768px) {
  .main-board-drawer {
    width: min(19rem, 86vw);
  }
}

.app-bar .favorite-board-shortcuts {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  margin-left: 0.35rem;
  overflow: hidden;
}

.app-bar .favorite-board-shortcut {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 0.4rem;
  font-size: 0.72rem;
  padding: 0.35rem 0.45rem;
  text-decoration: none;
  white-space: nowrap;
}

.app-bar [data-favorite-board-shortcuts] > a {
  display: block;
  max-width: 10rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media screen and (max-width: 30rem) {
  .app-bar .navbar-menu {
    flex-basis: 100%;
  }
}

@media screen and (max-width: 768px) {
  .section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .columns {
    margin-left: 0;
    margin-right: 0;
  }

  .column {
    min-width: 0;
  }

  .field.is-grouped,
  .buttons {
    flex-wrap: wrap;
  }

  .modal-card {
    margin: 0.75rem;
    max-height: calc(100dvh - 1.5rem);
    max-width: calc(100vw - 1.5rem);
    width: 100%;
  }

  .modal-card-head,
  .modal-card-body,
  .modal-card-foot {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .modal-card-foot {
    flex-wrap: wrap;
  }

  .modal-card-foot .button {
    flex: 1 1 auto;
    min-width: 0;
  }

  .app-bar .navbar-brand {
    min-width: 0;
    width: 100%;
  }

  .app-bar [data-favorite-board-shortcuts] {
    flex: 1 1 0;
    margin-left: 0.25rem !important;
    max-width: 100%;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 0.2rem 0;
    scrollbar-width: none;
  }

  .app-bar [data-favorite-board-shortcuts]::-webkit-scrollbar {
    display: none;
  }

  .app-bar [data-favorite-board-shortcuts] > a {
    flex: 0 0 auto;
    max-width: min(7rem, 30vw);
    text-overflow: ellipsis;
  }

  .app-bar .navbar-burger {
    flex: 0 0 3.25rem;
    margin-left: 0;
  }

  .app-bar .navbar-menu,
  .app-bar .navbar-end {
    min-width: 0;
    width: 100%;
  }

  .app-bar .navbar-dropdown {
    inset-inline-end: 0.25rem;
    max-width: calc(100vw - 1rem);
    min-width: min(16rem, calc(100vw - 1rem));
  }
}

@media screen and (max-width: 480px) {
  .button {
    min-width: 0;
    white-space: normal;
  }

  .app-bar .navbar-menu {
    flex-basis: 100%;
  }

  .app-bar .navbar-end {
    justify-content: space-between;
  }

  .app-bar .navbar-end > .navbar-item {
    padding-left: 0.35rem;
    padding-right: 0.35rem;
  }
}

@media screen and (min-width: 769px) {
  body.has-notification-drawer main {
    padding-right: 23.5rem;
  }
}

@media screen and (max-width: 768px) {
  .notification-drawer {
    top: 0;
    width: min(22rem, 92vw);
  }

  body.has-notification-drawer .notification-drawer {
    box-shadow: -0.8rem 0 1.8rem rgba(18, 31, 48, 0.24);
  }

  body.has-notification-drawer .notification-drawer-backdrop {
    opacity: 1;
    pointer-events: auto;
  }
}
/* Quill toolbars use a 15px gap between every format group by default. */
.ql-toolbar.ql-snow .ql-formats {
  margin-right: 0;
}

.tabulator .tabulator-row .tabulator-row-resize-handle.prev {
  display: none;
}

.tabulator .tabulator-row .tabulator-row-resize-handle:not(.prev) {
  background: transparent;
  bottom: 0;
  height: 12px;
  left: 0;
  right: auto;
  width: var(--tws-row-header-width, 20px);
  z-index: 12;
}

.tabulator .tabulator-row .tabulator-row-resize-handle:not(.prev):hover {
  background: rgb(123 77 255 / 22%);
}

.tabulator .tabulator-cell.tws-spreadsheet-cell {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.card-spreadsheet,
.public-spreadsheet {
  max-width: calc(100vw - 3rem);
  overflow: auto;
  resize: both;
  width: 100%;
  height: 430px;
  min-width: 320px;
  min-height: 240px;
}

.card-spreadsheet .tabulator,
.public-spreadsheet .tabulator {
  background: #fff;
  color: #27364a;
  font-size: 0.88rem;
  height: 100%;
}

.spreadsheet-field-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  position: relative;
}

.spreadsheet-field-heading .card-field-label,
.spreadsheet-field-heading .public-field-label {
  margin: 0;
}

.spreadsheet-actions {
  position: relative;
}

.spreadsheet-toolbar {
  align-items: center;
  display: flex;
  gap: 0.35rem;
  margin-left: auto;
}

.spreadsheet-toolbar-add {
  background: #f3efff;
  border: 1px solid #e2d9ff;
  border-radius: 0.4rem;
  color: var(--color-primary);
  cursor: pointer;
  font: inherit;
  height: 2rem;
  padding: 0 0.55rem;
  white-space: nowrap;
}

.spreadsheet-toolbar-add:hover,
.spreadsheet-toolbar-add:focus-visible {
  background: #e9e1ff;
}

.spreadsheet-actions > summary {
  align-items: center;
  background: #f3efff;
  border: 1px solid #e2d9ff;
  border-radius: 0.4rem;
  color: var(--color-primary);
  cursor: pointer;
  display: flex;
  height: 2rem;
  justify-content: center;
  list-style: none;
  width: 2rem;
}

.spreadsheet-actions > summary::marker {
  content: "";
}

.spreadsheet-actions > summary::-webkit-details-marker {
  display: none;
}

.spreadsheet-actions > summary svg {
  fill: none;
  height: 1rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
  width: 1rem;
}

.spreadsheet-actions-menu {
  background: #fff;
  border: 1px solid #e2d9ff;
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 1.5rem rgba(38, 29, 68, 0.18);
  display: none;
  min-width: 12rem;
  padding: 0.35rem;
  position: absolute;
  right: 0;
  top: calc(100% + 0.25rem);
  z-index: 30;
}

.spreadsheet-actions[open] .spreadsheet-actions-menu {
  display: grid;
}

.spreadsheet-actions-item {
  background: transparent;
  border: 0;
  border-radius: 0.3rem;
  color: #27364a;
  cursor: pointer;
  padding: 0.55rem 0.65rem;
  text-align: left;
  white-space: nowrap;
}

.spreadsheet-actions-item:hover,
.spreadsheet-actions-item:focus-visible {
  background: #f3efff;
  color: var(--color-primary);
}

.template-spreadsheet-editor {
  grid-column: 1 / -1;
  min-width: 0;
}

.template-spreadsheet-editor .spreadsheet-toolbar {
  justify-content: flex-end;
  margin-bottom: 0.35rem;
}

.template-spreadsheet-table {
  height: 360px;
  min-width: 0;
}
