/* User web — Vuexy theme overrides + TaskBee-only widgets */

.user-auth-cover,
.user-auth-cover-alt {
  min-height: 100vh;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.user-auth-cover .auth-illustration {
  max-height: 420px;
  width: auto;
}

.user-web-auth .w-px-400 {
  max-width: 100%;
}

.user-web-auth #google-signin {
  min-height: 40px;
}

.user-web-auth #google-signin iframe {
  margin: 0 auto;
}

#login-standard[hidden],
#qr-login[hidden] {
  display: none !important;
}

.tb-qr-login {
  padding: 0.15rem 0 0.25rem;
}

.tb-qr-back {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin: 0 0 0.35rem;
  padding: 0.35rem 0.15rem;
  border: 0;
  background: transparent;
  color: #696cff;
  font-size: 0.9375rem;
  line-height: 1.2;
  gap: 0.4rem;
  cursor: pointer;
}

.tb-qr-back:hover,
.tb-qr-back:focus-visible {
  color: #5f33e1;
}

.tb-qr-panel {
  padding: 1.15rem 1rem 1.1rem;
  border: 1px solid #efeaf8;
  border-radius: 1rem;
  background: #faf9fc;
}

.tb-qr-login .tb-qr-box {
  width: 13.75rem;
  height: 13.75rem;
  margin: 0 auto 0.85rem;
  padding: 0.65rem;
  border-radius: 0.9rem;
  background: #fff;
  border: 1px solid #ece8f5;
  box-shadow: 0 8px 24px rgba(91, 80, 145, 0.06);
  display: grid;
  place-items: center;
}

.tb-qr-box svg {
  display: block;
  width: 100%;
  height: 100%;
}

.tb-qr-login #qr-refresh {
  min-height: 2.75rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

.tb-qr-skeleton {
  width: 70%;
  height: 70%;
  border-radius: 0.4rem;
  background: linear-gradient(90deg, #f0eef6 25%, #f7f5fb 50%, #f0eef6 75%);
  background-size: 200% 100%;
  animation: tb-qr-shimmer 1.2s linear infinite;
}

@keyframes tb-qr-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .tb-qr-skeleton { animation: none; }
}

.user-web-auth .tb-password-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.user-web-auth .tb-password-label .form-label {
  margin-bottom: 0;
}

.user-web-auth .tb-password-forgot {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 0.8125rem;
  line-height: 1.2;
}

.user-web-auth .tb-password {
  position: relative;
}

.user-web-auth .tb-password .form-control {
  padding-right: 2.85rem !important;
}

.user-web-auth .tb-password__toggle {
  position: absolute;
  top: 50%;
  right: 0.2rem;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  border-radius: 0.375rem;
  background: transparent;
  color: #6d6b77;
  transform: translateY(-50%);
  cursor: pointer;
  line-height: 1;
}

.user-web-auth .tb-password__toggle svg {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  pointer-events: none;
}

.user-web-auth .tb-password__toggle svg[hidden] {
  display: none !important;
}

.user-web-auth .tb-password__toggle:hover,
.user-web-auth .tb-password__toggle:focus-visible {
  color: #5f33e1;
  outline: none;
}

.user-web-auth .tb-password__toggle:focus-visible {
  box-shadow: 0 0 0 2px rgba(105, 108, 255, 0.28);
}

/* Spinner + label share one flex child so `d-grid` buttons do not stack them. */
.user-web-auth .btn .btn-busy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  line-height: 1;
  white-space: nowrap;
  vertical-align: middle;
}

.user-web-auth .btn .btn-busy .spinner-border {
  position: relative;
  top: 0;
  flex: 0 0 auto;
  display: block;
}

.user-web-auth .btn .btn-busy__label {
  display: inline-block;
  line-height: 1;
}

@media (max-width: 575.98px) {
  .user-web-auth .w-px-400 {
    width: 100% !important;
  }

  .user-web-auth .authentication-bg {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }
}

.authentication-wrapper.authentication-basic .authentication-inner.user-legal-inner {
  max-width: 760px;
}

.user-legal-content {
  line-height: 1.7;
}

.user-legal-content h1,
.user-legal-content h2,
.user-legal-content h3 {
  margin-top: 1.25rem;
}

.user-web-app .layout-navbar,
.user-web-app .layout-navbar .navbar-nav,
.user-web-app .layout-navbar .nav-item,
.user-web-app .admin-topbar__content,
.user-web-app .admin-topbar__actions,
.layout-navbar .dropdown-notifications,
.layout-navbar .dropdown-notifications .nav-link,
.layout-navbar .user-notif-btn,
.layout-navbar .user-notif-icon {
  overflow: visible !important;
}

.user-notif-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border-radius: 50%;
  color: #1f1f1f;
}

.user-notif-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  color: #1f1f1f;
}

.user-notif-icon .ti {
  font-size: 1.45rem;
  line-height: 1;
  color: #1f1f1f !important;
}

.user-notif-count {
  position: absolute;
  top: -0.45rem;
  right: -0.5rem;
  left: auto;
  z-index: 3;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.28rem;
  border: 0;
  border-radius: 999px;
  background: #f44336;
  color: #fff !important;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: none !important;
  margin: 0;
  box-shadow: 0 0 0 2px #fff;
}

.user-notif-count[hidden],
.user-notif-count.d-none {
  display: none !important;
}

.tb-notif-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tb-notif-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid #efeaf8;
  border-radius: 0.9rem;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.tb-notif-item.is-unread {
  background: #f4efff;
  border-color: #ddd6fe;
}

.tb-notif-body {
  min-width: 0;
  flex: 1 1 auto;
}

.tb-notif-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  color: #2f2b3d;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tb-notif-message {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tb-notif-time {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.72rem;
  color: #a1a0ae;
}

.user-notif-panel {
  width: min(23.5rem, calc(100vw - 1.25rem)) !important;
  padding: 0;
  border: 0;
  border-radius: 1rem !important;
  box-shadow: 0 16px 40px rgba(47, 43, 61, 0.16);
  overflow: hidden;
}

.user-notif-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid #f0eef6;
}

.user-notif-panel__list {
  max-height: none;
}

.tb-notif-item.is-compact {
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid #f3f1f7;
  padding: 0.85rem 1.1rem;
  background: #fff;
  gap: 0.75rem;
}

.tb-notif-item.is-compact:last-child {
  border-bottom: 0;
}

.tb-notif-item.is-compact.is-unread {
  background: #f7f3ff;
}

.user-notif-panel__all {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1rem;
  border-top: 1px solid #f0eef6;
  color: #5f33e1;
  font-weight: 600;
  font-size: 0.875rem;
}

.user-notif-panel__all:hover {
  background: #f7f3ff;
  color: #5f33e1;
}

.tb-create-dialog {
  max-width: 34rem;
}

.tb-create-modal {
  border: 0;
  border-radius: 1.25rem;
  overflow: visible;
}

.tb-create-modal .modal-header,
.tb-create-modal .modal-footer {
  border-color: #f0eef6;
}

.tb-create-modal .modal-body {
  padding-top: 1rem;
  overflow: visible;
}

.tb-create-modal:has(.tb-dt-wrap.is-open) .modal-body {
  position: relative;
  z-index: 5;
}

#createTaskModal.is-picking-category .tb-create-dialog {
  max-height: 92vh;
}

#createTaskModal.is-picking-category .tb-create-modal,
#createTaskModal.is-picking-category #create-task-form,
#createTaskModal.is-picking-category .modal-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

#createTaskModal.is-picking-category .tb-create-modal {
  max-height: 92vh;
}

#createTaskModal.is-picking-category #create-task-form,
#createTaskModal.is-picking-category .modal-body {
  flex: 1 1 auto;
  overflow: hidden;
}

#category-picker-pane:not([hidden]) {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.tb-picker-top,
.tb-picker-foot {
  flex: 0 0 auto;
}

.tb-picker-list {
  flex: 1 1 auto;
  min-height: 14rem;
  max-height: min(52vh, 28rem);
  overflow-y: scroll;
  overflow-x: hidden;
  margin: 0.65rem 0 0;
  padding: 0.15rem 0.4rem 0.35rem 0;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.tb-picker-list::-webkit-scrollbar {
  width: 8px;
}

.tb-picker-list::-webkit-scrollbar-thumb {
  background: #c4b5fd;
  border-radius: 8px;
}

.tb-picker-list::-webkit-scrollbar-track {
  background: #f3eeff;
  border-radius: 8px;
}

.tb-picker-foot {
  padding-top: 0.85rem;
}

.tb-create-pane .form-label {
  margin-bottom: 0.55rem;
}

.tb-field {
  min-height: 3.15rem;
  border-radius: 0.9rem;
  border-color: #eceaf3;
  background: #fff;
}

.tb-req {
  color: #ea5455;
  font-weight: 800;
}

.tb-field-error {
  display: none;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #ea5455;
}

.tb-field-error:not(:empty) {
  display: block;
}

.tb-dt-wrap.is-invalid {
  border-color: #ea5455;
  box-shadow: 0 0 0 3px rgba(234, 84, 85, 0.14);
}

textarea.tb-field {
  min-height: 7.5rem;
  padding-top: 0.85rem;
}

.tb-types {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}

.tb-type {
  aspect-ratio: 1;
  width: 100%;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  border: 1.5px solid #eceaf3;
  background: #fff;
  border-radius: 0.95rem;
  padding: 0.4rem 0.3rem;
  text-align: center;
  cursor: pointer;
  color: #6b6680;
}

.tb-type-icon {
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  flex-shrink: 0;
}

.tb-type-icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.tb-type-emoji {
  font-size: 1.25rem;
  line-height: 1;
}

.tb-type-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  width: 100%;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.15;
  word-break: break-word;
}

.tb-type.is-on {
  border-color: #5f33e1;
  background: #f6f2ff;
  color: #5f33e1;
  box-shadow: 0 0 0 2px rgba(95, 51, 225, 0.12);
}

.tb-type-plus {
  border-style: dashed;
  color: #5f33e1;
}

.tb-type-plus .tb-type-icon {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}

.tb-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.15rem;
  margin-bottom: 0.25rem;
}

.tb-switch-label {
  margin: 0;
  font-weight: 600;
  color: #2f2b3d;
}

.tb-switch-row .form-check-input {
  width: 2.4rem;
  height: 1.35rem;
  cursor: pointer;
}

.tb-prios {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.tb-prio {
  min-height: 2.75rem;
  border-radius: 0.8rem;
  border: 1.5px solid #eceaf3;
  background: #fff;
  font-weight: 600;
  font-size: 0.9rem;
}

.tb-prio[data-p="low"] { color: #16a34a; border-color: #bbf7d0; }
.tb-prio[data-p="medium"] { color: #ea580c; border-color: #fed7aa; }
.tb-prio[data-p="high"] { color: #e11d48; border-color: #fecdd3; }
.tb-prio.is-on[data-p="low"],
.tb-prio.active[data-p="low"] { background: #ecfdf3; }
.tb-prio.is-on[data-p="medium"],
.tb-prio.active[data-p="medium"] { background: #fff7ed; }
.tb-prio.is-on[data-p="high"],
.tb-prio.active[data-p="high"] { background: #fff1f2; }

@media (max-width: 575.98px) {
  .tb-types {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.tb-type-add {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1.5px dashed #c4b5fd;
  background: #f7f3ff;
  color: #5f33e1;
  border-radius: 1rem;
  min-height: 4rem;
  padding: 0.65rem 0.9rem;
  cursor: pointer;
  text-align: left;
}

.tb-type-add-plus {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
  background: #efe9ff;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  font-weight: 700;
  flex-shrink: 0;
}

.tb-type-add strong {
  display: block;
  font-size: 0.95rem;
}

.tb-type-add small {
  display: block;
  color: #9b93b3;
  font-size: 0.75rem;
  font-weight: 500;
}

.tb-user-types {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  overflow: visible;
}

.tb-user-type {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  min-height: 2.4rem;
  padding: 0 1.1rem;
  background: #efe9ff;
  color: #5f33e1;
  font-weight: 600;
}

.tb-user-type.is-on {
  background: #5f33e1;
  color: #fff;
}

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

.tb-cat-chip {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 3.15rem;
  padding: 0.45rem 0.75rem;
  border: 0;
  border-radius: 1rem;
  background: #f3eeff;
  color: #2f2b3d;
  text-align: left;
  font-weight: 600;
}

.tb-cat-chip.is-on {
  outline: 2px solid #5f33e1;
  background: #ebe4ff;
}

.tb-cat-chip-icon {
  width: 1.75rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.tb-icon-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.tb-icon-opt {
  aspect-ratio: 1;
  border: 1px solid #eceaf3;
  border-radius: 0.85rem;
  background: #f6f4fb;
  display: grid;
  place-items: center;
}

.tb-icon-opt.is-on {
  border-color: #5f33e1;
  background: #efe9ff;
  box-shadow: 0 0 0 2px rgba(95, 51, 225, 0.16);
}

@media (max-width: 575.98px) {
  .tb-cat-grid {
    grid-template-columns: 1fr;
  }
}

.tb-planner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18.75rem, 22.5rem);
  gap: 1.25rem;
  align-items: stretch;
  min-height: calc(100dvh - 13.5rem);
}

body[data-page="planner"] .content-wrapper > .container-xxl {
  display: flex;
  flex-direction: column;
}

body[data-page="planner"] .tb-planner {
  flex: 1 1 auto;
}

body[data-page="planner"]:has(#planner-cal[data-view="year"]) .tb-planner {
  min-height: 0;
}

.tb-planner__cal,
.tb-planner__day {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.tb-planner__cal .card-header,
.tb-planner__day .card-header {
  flex: 0 0 auto;
}

.tb-planner__cal .card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding-top: 0.85rem;
}

.tb-planner__day-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

#planner-grid:empty {
  position: relative;
  min-height: 32rem;
  border: 1px solid #ece8f5;
  border-radius: 0.85rem;
  background: #fcfcfd;
}

#planner-grid:empty::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.7) 45%, rgba(255, 255, 255, 0) 100%);
  background-size: 200% 100%;
  animation: tb-qr-shimmer 1.2s linear infinite;
}

.tb-plan-skel {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.25rem 0 0.5rem;
}

.tb-plan-skel__row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid #f0eef6;
}

.tb-plan-skel__badge,
.tb-plan-skel__lines span {
  display: block;
  border-radius: 999px;
  background: linear-gradient(90deg, #f0eef6 25%, #f7f5fb 50%, #f0eef6 75%);
  background-size: 200% 100%;
  animation: tb-qr-shimmer 1.2s linear infinite;
}

.tb-plan-skel__badge {
  flex: 0 0 4.25rem;
  height: 1.35rem;
}

.tb-plan-skel__lines {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-top: 0.1rem;
}

.tb-plan-skel__lines span:first-child {
  width: 70%;
  height: 0.85rem;
}

.tb-plan-skel__lines span:last-child {
  width: 42%;
  height: 0.65rem;
}

@media (prefers-reduced-motion: reduce) {
  #planner-grid:empty::after,
  .tb-plan-skel__badge,
  .tb-plan-skel__lines span {
    animation: none;
  }
}

#planner-list {
  flex: 0 1 auto;
  min-height: 6rem;
  max-height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
}

#planner-add {
  flex: 0 0 auto;
}

#planner-list.is-flash .tb-plan-row {
  animation: tb-plan-flash 0.7s ease;
}

@keyframes tb-plan-flash {
  0% { background: #efe9ff; }
  100% { background: transparent; }
}

.tb-planner-views {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tb-planner-view {
  border: 0;
  border-radius: 999px;
  min-height: 2.15rem;
  padding: 0 0.95rem;
  background: #efe9ff;
  color: #5f33e1;
  font-weight: 600;
  font-size: 0.85rem;
}

.tb-planner-view.is-on {
  background: #5f33e1;
  color: #fff;
}

.tb-week,
.tb-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.4rem;
}

.tb-week {
  margin-bottom: 0.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: #a8aaae;
  font-weight: 600;
}

.tb-week .sun,
.tb-day.sun {
  color: #ff4c51;
}

.tb-day {
  aspect-ratio: 1;
  border: 0;
  border-radius: 0.5rem;
  background: #f8f7fa;
  color: #444050;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.2rem 0.1rem 0.25rem;
  overflow: visible;
}

.tb-day:hover {
  background: #efe9ff;
  color: #5f33e1;
}

.tb-day.out {
  color: #c4c4c8;
  background: transparent;
}

.tb-day.today {
  background: #444050;
  color: #fff;
}

.tb-day.sel {
  background: #e7e7ff;
  color: #696cff;
  box-shadow: inset 0 -3px 0 #696cff;
}

.tb-day.today:hover {
  background: #444050;
  color: #fff;
}

.tb-day.sel:hover {
  background: #e7e7ff;
  color: #696cff;
}

.tb-grid-week .tb-day {
  min-height: 2.75rem;
}

#planner-cal {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

#planner-cal .tb-week {
  flex: 0 0 auto;
  gap: 0;
  margin-bottom: 0;
  padding: 0.15rem 0 0.45rem;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

#planner-cal .tb-week .sun {
  color: #e11d48;
}

#planner-cal[data-view="month"] .tb-grid,
#planner-cal[data-view="week"] .tb-grid {
  flex: 1 1 auto;
  gap: 0;
  min-height: 0;
  border: 1px solid #ece8f5;
  border-radius: 0.85rem;
  overflow: hidden;
  background: #fff;
}

#planner-cal[data-view="month"] .tb-grid {
  grid-template-rows: repeat(6, minmax(5.15rem, 1fr));
  min-height: 32rem;
}

#planner-cal[data-view="week"] .tb-grid {
  grid-template-rows: minmax(16rem, 1fr);
  min-height: 22rem;
}

#planner-cal[data-view="month"] .tb-day,
#planner-cal[data-view="week"] .tb-day {
  aspect-ratio: auto;
  min-height: 0;
  height: 100%;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.15rem;
  padding: 0.28rem 0.28rem 0.22rem;
  overflow: hidden;
  background: #fff;
  color: #444050;
  font-weight: 600;
  box-shadow: none;
  border-radius: 0;
  border-right: 1px solid #f0eef6;
  border-bottom: 1px solid #f0eef6;
  cursor: pointer;
}

#planner-cal[data-view="month"] .tb-day:nth-child(7n),
#planner-cal[data-view="week"] .tb-day:nth-child(7n) {
  border-right: 0;
}

#planner-cal[data-view="month"] .tb-day:nth-child(n+36) {
  border-bottom: 0;
}

#planner-cal[data-view="week"] .tb-day {
  border-bottom: 0;
}

#planner-cal[data-view="month"] .tb-day.sun,
#planner-cal[data-view="week"] .tb-day.sun {
  background: #fff6f6;
  color: #e11d48;
}

#planner-cal[data-view="month"] .tb-day.out,
#planner-cal[data-view="week"] .tb-day.out {
  background: #fcfcfd;
  color: #b8b5c3;
  opacity: 1;
}

#planner-cal[data-view="month"] .tb-day.out.sun,
#planner-cal[data-view="week"] .tb-day.out.sun {
  background: #fff8f8;
}

#planner-cal[data-view="month"] .tb-day.today,
#planner-cal[data-view="week"] .tb-day.today,
#planner-cal[data-view="month"] .tb-day.has-tasks,
#planner-cal[data-view="week"] .tb-day.has-tasks,
#planner-cal[data-view="month"] .tb-day.has-tasks.today,
#planner-cal[data-view="week"] .tb-day.has-tasks.today {
  background: #fff;
  color: #444050;
  box-shadow: none;
  font-weight: 600;
}

#planner-cal[data-view="month"] .tb-day.sun.today,
#planner-cal[data-view="week"] .tb-day.sun.today,
#planner-cal[data-view="month"] .tb-day.sun.has-tasks,
#planner-cal[data-view="week"] .tb-day.sun.has-tasks {
  background: #fff6f6;
}

#planner-cal[data-view="month"] .tb-day.sel,
#planner-cal[data-view="week"] .tb-day.sel,
#planner-cal[data-view="month"] .tb-day.has-tasks.sel,
#planner-cal[data-view="week"] .tb-day.has-tasks.sel,
#planner-cal[data-view="month"] .tb-day.sun.sel,
#planner-cal[data-view="week"] .tb-day.sun.sel {
  background: #faf7ff;
  color: #444050;
  box-shadow: inset 0 0 0 2px #5f33e1;
  z-index: 1;
}

#planner-cal[data-view="month"] .tb-day:hover,
#planner-cal[data-view="week"] .tb-day:hover,
#planner-cal[data-view="month"] .tb-day.has-tasks:hover,
#planner-cal[data-view="week"] .tb-day.has-tasks:hover,
#planner-cal[data-view="month"] .tb-day.today:hover,
#planner-cal[data-view="week"] .tb-day.today:hover {
  background: #f7f3ff;
  color: #444050;
}

#planner-cal[data-view="month"] .tb-day.sel:hover,
#planner-cal[data-view="week"] .tb-day.sel:hover {
  background: #faf7ff;
  color: #444050;
}

#planner-cal[data-view="month"] .tb-day.is-drop,
#planner-cal[data-view="week"] .tb-day.is-drop,
#planner-cal .tb-mini-cell.is-drop {
  background: #efe9ff !important;
  box-shadow: inset 0 0 0 2px #5f33e1 !important;
  color: #5f33e1 !important;
}

.tb-day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.2rem;
  width: 100%;
  min-height: 1.45rem;
  flex: 0 0 auto;
}

.tb-day-num {
  min-width: 1.45rem;
  height: 1.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.tb-day-num.is-today {
  background: #5f33e1;
  color: #fff;
}

#planner-cal .tb-day.sun .tb-day-num:not(.is-today) {
  color: #e11d48;
}

.tb-day-add {
  width: 1.35rem;
  height: 1.35rem;
  border: 0;
  border-radius: 0.35rem;
  background: transparent;
  color: #5f33e1;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  opacity: 0;
  cursor: pointer;
}

.tb-day:hover .tb-day-add,
.tb-day.sel .tb-day-add {
  opacity: 1;
}

.tb-day-add:hover {
  background: #efe9ff;
}

.tb-day-events {
  display: flex;
  flex-direction: column;
  gap: 0.14rem;
  width: 100%;
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.tb-event {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  width: 100%;
  min-height: 1.22rem;
  flex: 0 0 auto;
  border: 0;
  border-radius: 0.35rem;
  background: #5f33e1;
  color: #fff;
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.15;
  padding: 0.1rem 0.32rem;
  text-align: left;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.tb-event.is-low {
  background: #16a34a;
}

.tb-event.is-high {
  background: #e11d48;
}

.tb-event.is-done {
  background: #d7d3e4;
  color: #6f6b7d;
  text-decoration: line-through;
}

.tb-event.is-dragging {
  opacity: 0.35;
}

.tb-event-time {
  flex: 0 0 auto;
  opacity: 0.92;
  font-weight: 800;
}

.tb-event-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tb-event-more {
  border: 0;
  background: #efe9ff;
  color: #5f33e1;
  font-size: 0.68rem;
  font-weight: 700;
  text-align: left;
  padding: 0.12rem 0.35rem;
  min-height: 1.35rem;
  width: 100%;
  flex: 0 0 auto;
  margin-top: 0.08rem;
  border-radius: 0.3rem;
  cursor: pointer;
  position: relative;
  z-index: 2;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tb-event-more:hover,
.tb-event-more:focus-visible,
.tb-event-more[aria-expanded="true"] {
  background: #5f33e1;
  color: #fff;
  outline: none;
}

body.tb-dragging,
body.tb-dragging * {
  cursor: grabbing !important;
  user-select: none !important;
}

.tb-drag-ghost {
  position: fixed;
  z-index: 4000;
  pointer-events: none !important;
  min-width: 8rem;
  max-width: 14rem;
  box-shadow: 0 10px 24px rgba(47, 43, 61, 0.22);
  transform: translate(-20%, -20%) rotate(2deg);
}

.tb-plan-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid #f0eef6;
  cursor: grab;
  touch-action: none;
}

.tb-plan-row.is-done .tb-task-title {
  text-decoration: line-through;
  color: #a8aaae;
}

.tb-plan-row.is-dragging {
  opacity: 0.4;
}

.tb-plan-row__body {
  min-width: 0;
  flex: 1 1 auto;
}

.tb-day-dow {
  display: none;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9b93b3;
}

.tb-grid.is-week .tb-day-dow {
  display: block;
}

.tb-grid.is-week .tb-day.today .tb-day-dow,
.tb-grid.is-week .tb-day.sel .tb-day-dow {
  color: inherit;
  opacity: 0.8;
}

#planner-cal[data-view="year"] .tb-week,
#planner-cal[data-view="week"] .tb-week {
  display: none;
}

#planner-cal[data-view="year"] .tb-year {
  flex: 1 1 auto;
}

.tb-year {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem 1rem;
}

.tb-mini-month__title {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: #5f33e1;
  font-weight: 700;
  font-size: 0.82rem;
  text-align: left;
  padding: 0 0.15rem 0.25rem;
}

.tb-mini-month__title:hover {
  color: #4a28c7;
}

.tb-mini-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin-bottom: 0.15rem;
  text-align: center;
  font-size: 0.62rem;
  font-weight: 700;
  color: #a8aaae;
}

.tb-mini-week .sun {
  color: #e11d48;
}

.tb-mini-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.12rem;
}

.tb-mini-cell {
  border: 0;
  background: transparent;
  min-height: 1.45rem;
  border-radius: 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: #444050;
  padding: 0;
  line-height: 1;
}

.tb-mini-cell.empty {
  visibility: hidden;
  pointer-events: none;
}

.tb-mini-cell.sun {
  color: #ff4c51;
}

.tb-mini-cell.has-tasks {
  background: #efe9ff;
  color: #5f33e1;
  font-weight: 800;
  box-shadow: inset 0 0 0 1.5px #5f33e1;
}

.tb-mini-cell.today {
  background: #444050;
  color: #fff;
}

.tb-mini-cell.sel {
  background: #5f33e1;
  color: #fff;
}

.tb-mini-cell.has-tasks.today,
.tb-mini-cell.has-tasks.sel {
  background: #5f33e1;
  color: #fff;
  box-shadow: none;
}

.tb-mini-cell:not(.empty):hover {
  background: #efe9ff;
  color: #5f33e1;
}

.tb-mini-cell.has-tasks:hover,
.tb-mini-cell.has-tasks.today:hover,
.tb-mini-cell.has-tasks.sel:hover {
  background: #5f33e1;
  color: #fff;
}

.tb-mini-cell.sel:hover,
.tb-mini-cell.today:hover {
  color: #fff;
}

.tb-more-pop {
  position: fixed;
  z-index: 1095;
  width: 17.5rem;
  max-width: calc(100vw - 1rem);
  max-height: min(24rem, calc(100dvh - 1.5rem));
  display: flex;
  flex-direction: column;
  border: 1px solid #ece8f5;
  border-radius: 0.9rem;
  background: #fff;
  box-shadow: 0 18px 40px rgba(47, 43, 61, 0.18);
}

.tb-more-pop[hidden] {
  display: none !important;
}

.tb-more-pop__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0.9rem 0.7rem;
  border-bottom: 1px solid #f0eef6;
}

.tb-more-pop__head strong {
  display: block;
  color: #2f2b3d;
  font-size: 0.95rem;
}

.tb-more-pop__head p {
  color: #8c8796;
  font-size: 0.75rem;
}

.tb-more-pop__close {
  width: 1.85rem;
  height: 1.85rem;
  border: 0;
  border-radius: 0.45rem;
  background: #f4f1fa;
  color: #5f33e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 500;
}

.tb-more-pop__close:hover,
.tb-more-pop__close:focus-visible {
  background: #efe9ff;
}

.tb-more-pop__list {
  overflow-y: auto;
  padding: 0.45rem 0.5rem 0.6rem;
}

.tb-more-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  padding: 0.45rem 0.4rem;
  text-align: left;
  cursor: pointer;
}

.tb-more-item:hover,
.tb-more-item:focus-visible {
  background: #f6f2ff;
  outline: none;
}

.tb-more-item__dot {
  flex: 0 0 auto;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #5f33e1;
}

.tb-more-item__dot.is-low {
  background: #16a34a;
}

.tb-more-item__dot.is-high {
  background: #e11d48;
}

.tb-more-item__dot.is-done {
  background: #c9c5d4;
}

.tb-more-item__time {
  flex: 0 0 4.4rem;
  color: #6f6b7d;
  font-size: 0.72rem;
  font-weight: 700;
}

.tb-more-item__title {
  min-width: 0;
  flex: 1 1 auto;
  color: #2f2b3d;
  font-size: 0.82rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tb-more-item.is-done .tb-more-item__title {
  color: #a8aaae;
  text-decoration: line-through;
}

@media (max-width: 1199.98px) {
  .tb-planner {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  #planner-cal[data-view="month"] .tb-grid {
    min-height: 34rem;
  }

  #planner-list {
    max-height: 22rem;
  }
}

@media (max-width: 767.98px) {
  .tb-year {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  #planner-cal[data-view="month"] .tb-grid {
    min-height: 28rem;
    grid-template-rows: repeat(6, minmax(4.35rem, 1fr));
  }

  #planner-cal[data-view="week"] .tb-grid {
    min-height: 16rem;
  }

  #planner-cal[data-view="week"] .tb-day-add,
  #planner-cal[data-view="month"] .tb-day.sel .tb-day-add {
    opacity: 1;
  }

  .tb-event-time {
    display: none;
  }

  .tb-more-item__time {
    flex-basis: 3.6rem;
  }
}

body[data-page="analytics"] .nav-pills {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  width: auto;
  padding: 0.28rem;
  margin-bottom: 1.25rem;
  background: #f3f0fa;
  border-radius: 999px;
}

body[data-page="analytics"] .nav-pills .nav-item {
  margin: 0;
}

body[data-page="analytics"] .nav-pills .nav-link {
  border: 0;
  border-radius: 999px;
  min-height: 2.25rem;
  padding: 0.4rem 1.2rem;
  font-weight: 700;
  color: #6f6b7d;
  background: transparent;
}

body[data-page="analytics"] .nav-pills .nav-link.active {
  background: #5f33e1;
  color: #fff;
  box-shadow: 0 6px 16px rgba(95, 51, 225, 0.28);
}

.tb-an-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.tb-an-kpi {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  min-height: 6.5rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid #efeaf8;
  border-radius: 1.2rem;
  background: #fff;
  box-shadow: 0 8px 24px rgba(105, 108, 255, 0.05);
}

.tb-an-kpi__copy {
  min-width: 0;
  flex: 1 1 auto;
}

.tb-an-kpi__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #7c73a0;
}

.tb-an-kpi__value {
  display: block;
  margin-top: 0.2rem;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.15;
  color: #2f2b3d;
  font-variant-numeric: tabular-nums;
}

.tb-an-kpi__hint {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  color: #8a8499;
}

.tb-an-kpi__hint.is-up { color: #16a34a; }
.tb-an-kpi__hint.is-down { color: #e11d48; }

.tb-an-kpi__icon {
  flex: 0 0 auto;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  margin-left: auto;
}

.tb-an-kpi__icon.is-done { background: #e7f8ed; color: #16a34a; }
.tb-an-kpi__icon.is-time { background: #efe9ff; color: #5f33e1; }
.tb-an-kpi__icon.is-late { background: #ffe8ee; color: #e11d48; }

.tb-an-ring {
  flex: 0 0 auto;
  width: 3.1rem;
  height: 3.1rem;
  margin-left: auto;
}

.tb-an-ring svg {
  display: block;
  width: 100%;
  height: 100%;
}

.tb-an-card {
  min-width: 0;
  margin-bottom: 1.15rem;
  padding: 1.2rem 1.25rem 1.15rem;
  border: 1px solid #efeaf8;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 10px 28px rgba(105, 108, 255, 0.06);
}

.tb-an-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.tb-an-card__head > div {
  min-width: 0;
  flex: 1 1 auto;
}

.tb-an-select {
  display: inline-flex;
  flex: 0 0 auto;
  margin: 0;
}

.tb-an-card__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #2f2b3d;
}

.tb-an-card__sub {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: #8a8499;
}

.tb-an-select select {
  appearance: none;
  border: 1px solid #ece8f5;
  border-radius: 999px;
  background: #f7f5fb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235f33e1' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.7rem center;
  color: #5f33e1;
  font-size: 0.78rem;
  font-weight: 700;
  min-height: 2rem;
  padding: 0.25rem 1.7rem 0.25rem 0.8rem;
}

.tb-an-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.5rem;
}

.tb-an-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  min-height: 8.6rem;
  padding: 0.8rem 0.35rem 0.65rem;
  border: 0;
  border-radius: 1rem;
  background: #f6f4fb;
  color: #2f2b3d;
  cursor: pointer;
}

.tb-an-day:hover,
.tb-an-day:focus-visible {
  background: #efe9ff;
  outline: none;
}

.tb-an-day.is-on {
  background: #5f33e1;
  color: #fff;
  box-shadow: 0 10px 22px rgba(95, 51, 225, 0.28);
}

.tb-an-day__name {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #8a8499;
}

.tb-an-day.is-sun .tb-an-day__name,
.tb-an-day.is-sun .tb-an-day__num {
  color: #e11d48;
}

.tb-an-day.is-on .tb-an-day__name,
.tb-an-day.is-on .tb-an-day__num,
.tb-an-day.is-on .tb-an-day__count {
  color: #fff;
}

.tb-an-day__num {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.2;
}

.tb-an-day__count {
  font-size: 0.68rem;
  font-weight: 700;
  color: #6f6b7d;
}

.tb-an-day__bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.18rem;
  height: 1.85rem;
  margin-top: auto;
  width: 100%;
}

.tb-an-day__bars span {
  width: 0.28rem;
  min-height: 0.2rem;
  border-radius: 999px;
  background: #d4c8f5;
}

.tb-an-day.is-on .tb-an-day__bars span {
  background: rgba(255, 255, 255, 0.78);
}

.tb-an-break {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.tb-an-donut {
  flex: 0 0 9.5rem;
  width: 9.5rem;
  height: 9.5rem;
}

.tb-an-donut svg {
  max-width: 100%;
}

.tb-an-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
  flex: 1 1 auto;
}

.tb-an-legend li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.28rem 0;
  font-size: 0.8rem;
  color: #2f2b3d;
}

.tb-an-legend__dot {
  flex: 0 0 auto;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
}

.tb-an-legend__name {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tb-an-legend__stat {
  flex: 0 0 auto;
  color: #8a8499;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.tb-an-link {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 0.25rem;
  margin: 0;
  color: #5f33e1;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.tb-an-link:hover {
  color: #4a28c7;
}

.tb-an-table-wrap {
  min-width: 0;
}

.tb-an-table__head,
.tb-an-row {
  display: grid;
  grid-template-columns: minmax(8rem, 1.6fr) minmax(7rem, 1fr) 6.5rem 5.5rem;
  gap: 0.75rem;
  align-items: center;
}

.tb-an-table__head {
  padding: 0 0.35rem 0.55rem;
  border-bottom: 1px solid #f0eef6;
  color: #8a8499;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tb-an-row {
  width: 100%;
  padding: 0.7rem 0.35rem;
  border: 0;
  border-bottom: 1px solid #f6f4fb;
  background: transparent;
  text-align: left;
  color: inherit;
}

.tb-an-row:hover,
.tb-an-row:focus-visible {
  background: #faf8ff;
  outline: none;
}

.tb-an-row.is-done .tb-an-row__title {
  text-decoration: line-through;
  color: #a8aaae;
}

.tb-an-row__task {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.tb-an-check {
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  border: 1.5px solid #cfc7e6;
  border-radius: 999px;
  background: #fff;
  padding: 0;
  cursor: pointer;
}

.tb-an-check[aria-pressed="true"] {
  border-color: #5f33e1;
  background: #5f33e1;
  box-shadow: inset 0 0 0 2px #fff;
}

.tb-an-row__title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.88rem;
  font-weight: 650;
  color: #2f2b3d;
}

.tb-an-cat {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  color: #6f6b7d;
  font-size: 0.78rem;
}

.tb-an-cat i {
  flex: 0 0 auto;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
}

.tb-an-cat span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tb-an-time {
  color: #6f6b7d;
  font-size: 0.78rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.tb-an-prio {
  display: inline-flex;
  justify-content: center;
  min-width: 4.1rem;
  border-radius: 999px;
  padding: 0.18rem 0.45rem;
  font-size: 0.7rem;
  font-weight: 700;
}

.tb-an-prio.is-high { background: #ffe8ee; color: #e11d48; }
.tb-an-prio.is-med { background: #fff4d6; color: #c48a00; }
.tb-an-prio.is-low { background: #e7f8ed; color: #16a34a; }

.tb-an-empty,
.tb-an-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.7rem 0.35rem 0.15rem;
  border: 0;
  background: transparent;
  color: #5f33e1;
  font-size: 0.82rem;
  font-weight: 700;
}

.tb-an-empty {
  display: block;
  color: #8a8499;
  font-weight: 600;
}

.tb-an-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.tb-an-metric {
  padding: 0.7rem 0.8rem;
  border-radius: 0.85rem;
  background: #f7f5fb;
}

.tb-an-metric__label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: #8a8499;
  font-size: 0.72rem;
  font-weight: 700;
}

.tb-an-metric__label i { color: #5f33e1; }

.tb-an-metric strong {
  display: block;
  margin-top: 0.2rem;
  color: #2f2b3d;
  font-size: 0.95rem;
}

.tb-an-metric small {
  display: block;
  color: #8a8499;
  font-size: 0.7rem;
}

.tb-an-chart-label {
  margin-bottom: 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #2f2b3d;
}

.tb-an-chart svg {
  display: block;
  width: 100%;
  height: 10rem;
}

@media (max-width: 1199.98px) {
  .tb-an-kpis {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767.98px) {
  .tb-an-kpis {
    grid-template-columns: 1fr;
  }

  .tb-an-week {
    display: flex;
    overflow-x: auto;
    gap: 0.5rem;
    padding-bottom: 0.35rem;
  }

  .tb-an-day {
    flex: 0 0 5.6rem;
  }

  .tb-an-table__head {
    display: none;
  }

  .tb-an-row {
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem 0.7rem;
  }

  .tb-an-row__task { grid-column: 1 / -1; }
}

@media (max-width: 575.98px) {
  .tb-an-kpis {
    grid-template-columns: 1fr;
  }

  .tb-an-week {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tb-an-break {
    flex-direction: column;
  }
}

.tb-dash-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.tb-dash-kpi {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-height: 6.25rem;
  padding: 1.05rem 1.1rem;
  border: 1px solid #efeaf8;
  border-radius: 1.15rem;
  background: #fff;
  box-shadow: 0 8px 24px rgba(105, 108, 255, 0.05);
}

.tb-dash-kpi__icon {
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.85rem;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
}

.tb-dash-kpi.is-total .tb-dash-kpi__icon { background: #efe9ff; color: #6d4cff; }
.tb-dash-kpi.is-high .tb-dash-kpi__icon { background: #ffe8ea; color: #ff5a6a; }
.tb-dash-kpi.is-due .tb-dash-kpi__icon { background: #fff4d6; color: #e2a00a; }
.tb-dash-kpi.is-done .tb-dash-kpi__icon { background: #e6f8ee; color: #2fbf71; }

.tb-dash-kpi__body {
  min-width: 0;
  flex: 1 1 auto;
}

.tb-dash-kpi__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #7c73a0;
}

.tb-dash-kpi__value {
  display: block;
  margin-top: 0.15rem;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.15;
  color: #2f2b3d;
  font-variant-numeric: tabular-nums;
}

.tb-dash-kpi__hint {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.72rem;
  color: #a1a0ae;
}

.tb-dash-kpi__spark {
  flex: 0 0 auto;
  margin-left: auto;
  align-self: center;
}

.tb-dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(18rem, 0.9fr);
  gap: 1.15rem;
  align-items: stretch;
}

.tb-dash-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1.25rem 1.35rem 1.15rem;
  border: 1px solid #efeaf8;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 10px 28px rgba(105, 108, 255, 0.06);
}

.tb-dash-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.tb-dash-card__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #2f2b3d;
}

.tb-dash-card__sub {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: #8d89a3;
}

.tb-dash-chip {
  display: inline-flex;
  align-items: center;
  height: 1.7rem;
  padding: 0 0.7rem;
  border: 0;
  border-radius: 999px;
  background: #efe9ff;
  color: #6d4cff;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.tb-dash-chip--btn {
  cursor: pointer;
}

.tb-dash-chip--btn:hover,
.tb-dash-chip--btn:focus-visible {
  background: #e4dbff;
}

.tb-dash-priority__body {
  display: grid;
  grid-template-columns: minmax(12rem, 0.95fr) minmax(0, 1.15fr);
  gap: 1.25rem;
  align-items: center;
}

.tb-dash-donut,
.tb-dash-cats__donut {
  position: relative;
  display: grid;
  place-items: center;
  overflow: visible;
}

.tb-dash-donut svg,
.tb-dash-cats__donut svg {
  display: block;
  width: 100%;
  max-width: 16.5rem;
  height: auto;
  overflow: visible;
}

.tb-dash-donut .tb-dash-slice,
.tb-dash-donut .tb-dash-slice-hit {
  cursor: pointer;
  pointer-events: stroke;
}

.tb-dash-donut .tb-dash-slice {
  pointer-events: none;
}

.tb-dash-donut__label {
  position: absolute;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #efeaf8;
  box-shadow: 0 4px 12px rgba(47, 43, 61, 0.08);
  font-size: 0.68rem;
  font-weight: 700;
  color: #2f2b3d;
  pointer-events: none;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 150ms ease;
}

.tb-dash-donut__label.is-on {
  opacity: 1;
  visibility: visible;
}

@media (prefers-reduced-motion: reduce) {
  .tb-dash-donut__label {
    transition: none;
  }
}

.tb-dash-donut__center {
  position: absolute;
  text-align: center;
  pointer-events: none;
}

.tb-dash-donut__center strong {
  display: block;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.1;
  color: #2f2b3d;
}

.tb-dash-donut__center span {
  display: block;
  font-size: 0.72rem;
  color: #8d89a3;
}

.tb-dash-prio-rows,
.tb-dash-cat-rows {
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
  min-width: 0;
}

.tb-dash-row {
  min-width: 0;
}

.tb-dash-row__top {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.tb-dash-row__icon {
  flex: 0 0 auto;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.8rem;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
}

.tb-dash-row__icon.is-high { background: #ffe8ea; color: #ff5a6a; }
.tb-dash-row__icon.is-med { background: #fff4d6; color: #e2a00a; }
.tb-dash-row__icon.is-low { background: #e6f8ee; color: #2fbf71; }

.tb-dash-row__meta {
  min-width: 0;
  flex: 1 1 auto;
}

.tb-dash-row__name {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: #2f2b3d;
}

.tb-dash-row__desc {
  display: block;
  font-size: 0.72rem;
  color: #8d89a3;
}

.tb-dash-row__stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
  flex: 0 0 auto;
}

.tb-dash-pill {
  display: inline-flex;
  align-items: center;
  height: 1.35rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
}

.tb-dash-pill.is-high { background: #ffe8ea; color: #e23b4c; }
.tb-dash-pill.is-med { background: #fff4d6; color: #c48a00; }
.tb-dash-pill.is-low { background: #e6f8ee; color: #1ea05a; }

.tb-dash-row__pct {
  font-size: 0.78rem;
  font-weight: 700;
  color: #2f2b3d;
  font-variant-numeric: tabular-nums;
}

.tb-dash-meter {
  height: 0.38rem;
  margin: 0.45rem 0 0 3.05rem;
  border-radius: 999px;
  background: #f3f1f7;
  overflow: hidden;
}

.tb-dash-meter > span {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.tb-dash-meter > span.is-high { background: #ff5a6a; }
.tb-dash-meter > span.is-med { background: #f5b942; }
.tb-dash-meter > span.is-low { background: #3dcf7a; }

.tb-dash-tip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.2rem;
  padding: 0.85rem 1rem;
  border-radius: 0.95rem;
  background: #f4efff;
}

.tb-dash-tip__icon {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border-radius: 0.65rem;
  background: #fff;
  color: #6d4cff;
  display: grid;
  place-items: center;
}

.tb-dash-tip strong {
  display: block;
  font-size: 0.82rem;
  color: #2f2b3d;
}

.tb-dash-tip p {
  margin: 0.1rem 0 0;
  font-size: 0.78rem;
  color: #6d648c;
}

.tb-dash-tip__sparkle {
  margin-left: auto;
  color: #8b6dff;
  font-size: 1.1rem;
}

.tb-dash-cats__donut {
  margin: 0 auto 1.1rem;
  width: min(11.5rem, 70%);
}

.tb-dash-cat-rows .tb-dash-meter {
  margin-left: 3.05rem;
}

.tb-dash-cat-rows .tb-dash-meter > span {
  background: currentColor;
}

.tb-dash-empty {
  padding: 0.5rem 0;
  color: #8d89a3;
  font-size: 0.88rem;
}

.tb-dash-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.15rem;
  padding: 1.1rem 1.35rem;
  border-radius: 1.25rem;
  background: linear-gradient(90deg, #f4efff 0%, #f7f4ff 55%, #eef8ff 100%);
}

.tb-dash-banner__mark {
  flex: 0 0 auto;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 50%;
  background: #6d4cff;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  box-shadow: 0 8px 18px rgba(109, 76, 255, 0.28);
}

.tb-dash-banner__copy h6 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #2f2b3d;
}

.tb-dash-banner__copy p {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  color: #6d648c;
}

.tb-dash-banner__art {
  margin-left: auto;
  width: 5.5rem;
  height: 5.5rem;
  object-fit: contain;
}

@media (max-width: 1199.98px) {
  .tb-dash-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tb-dash-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .tb-dash-priority__body {
    grid-template-columns: 1fr;
  }

  .tb-dash-kpi__spark {
    display: none;
  }

  .tb-dash-banner {
    flex-wrap: wrap;
  }

  .tb-dash-banner__art {
    width: 4.25rem;
    height: 4.25rem;
  }
}

@media (max-width: 575.98px) {
  .tb-dash-kpis {
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
  }

  .tb-dash-kpi {
    min-height: 0;
    padding: 0.85rem 0.8rem;
  }

  .tb-dash-kpi__value {
    font-size: 1.3rem;
  }
}

.tb-donut {
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  background: conic-gradient(#ff4c51 0 var(--h), #ffab00 var(--h) calc(var(--h) + var(--m)), #696cff calc(var(--h) + var(--m)) 100%);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.tb-donut > div {
  width: 6.5rem;
  height: 6.5rem;
  border-radius: 50%;
  background: var(--bs-paper-bg, #fff);
  display: grid;
  place-items: center;
  text-align: center;
}

.tb-donut strong {
  display: block;
  font-size: 1.35rem;
}

.tb-donut span {
  font-size: 0.75rem;
  color: #a8aaae;
}

.tb-task.is-done .tb-task-title {
  text-decoration: line-through;
  color: #a8aaae;
}

.layout-menu .app-brand-logo img {
  display: block;
}

.user-web-app .layout-menu.menu-vertical {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.user-web-app .layout-menu > .menu-inner {
  height: auto;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

.tb-sidebar-user {
  position: relative;
  flex: 0 0 auto;
  margin-top: auto;
  padding: 0.75rem 0.85rem 1rem;
  border-top: 1px solid #efeaf8;
  background: inherit;
  z-index: 4;
}

.tb-sidebar-user__btn {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  min-height: 3rem;
  padding: 0.4rem 0.5rem;
  border: 0;
  border-radius: 0.85rem;
  background: #f6f2ff;
  text-align: left;
  cursor: pointer;
}

.tb-sidebar-user__btn:hover,
.tb-sidebar-user__btn:focus-visible,
.tb-sidebar-user.show .tb-sidebar-user__btn {
  background: #efe9ff;
  outline: none;
}

.tb-sidebar-user__btn .avatar {
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
}

.tb-sidebar-user .avatar-initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

.tb-sidebar-user .avatar-initial img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.tb-sidebar-user__copy {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.tb-sidebar-user__name {
  color: #2f2b3d;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tb-sidebar-user__email {
  color: #8c8796;
  font-size: 0.72rem;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tb-sidebar-user__caret {
  flex: 0 0 auto;
  color: #5f33e1;
  font-size: 1rem;
}

.tb-sidebar-user__menu {
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: calc(100% + 0.4rem);
  z-index: 6;
  padding: 0.4rem;
  border: 1px solid #ece8f5;
  border-radius: 0.9rem;
  background: #fff;
  box-shadow: 0 12px 28px rgba(47, 43, 61, 0.14);
}

.tb-sidebar-user__menu[hidden] {
  display: none !important;
}

.tb-sidebar-user__card {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.5rem 0.55rem;
}

.tb-sidebar-user__card-name {
  color: #2f2b3d;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tb-sidebar-user__card-email {
  color: #8c8796;
  font-size: 0.72rem;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tb-sidebar-user__item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  border: 0;
  border-radius: 0.55rem;
  background: transparent;
  color: #2f2b3d;
  padding: 0.5rem 0.6rem;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.tb-sidebar-user__item i {
  color: #5f33e1;
  font-size: 1.05rem;
}

.tb-sidebar-user__item:hover,
.tb-sidebar-user__item:focus-visible {
  background: #f6f2ff;
  color: #5f33e1;
  outline: none;
}

@media (min-width: 1200px) {
  .layout-menu-collapsed:not(.layout-menu-hover):not(.layout-menu-offcanvas):not(.layout-menu-fixed-offcanvas) .layout-menu.menu-vertical {
    overflow: visible;
  }

  .layout-menu-collapsed:not(.layout-menu-hover):not(.layout-menu-offcanvas):not(.layout-menu-fixed-offcanvas) .tb-sidebar-user {
    padding: 0.65rem 0.5rem 0.85rem;
  }

  .layout-menu-collapsed:not(.layout-menu-hover):not(.layout-menu-offcanvas):not(.layout-menu-fixed-offcanvas) .tb-sidebar-user__btn {
    justify-content: center;
    padding: 0.35rem;
    min-height: 2.75rem;
  }

  .layout-menu-collapsed:not(.layout-menu-hover):not(.layout-menu-offcanvas):not(.layout-menu-fixed-offcanvas) .tb-sidebar-user__copy,
  .layout-menu-collapsed:not(.layout-menu-hover):not(.layout-menu-offcanvas):not(.layout-menu-fixed-offcanvas) .tb-sidebar-user__caret {
    display: none;
  }

  .layout-menu-collapsed:not(.layout-menu-hover):not(.layout-menu-offcanvas):not(.layout-menu-fixed-offcanvas) .tb-sidebar-user__menu {
    left: calc(100% + 0.45rem);
    right: auto;
    bottom: 0.75rem;
    width: 14.5rem;
  }
}

.avatar-initial img {
  display: block;
  object-fit: contain;
}

@media (max-width: 767.98px) {
  .admin-topbar__title {
    font-size: 1.25rem;
  }
}

.user-web-app .tb-live-clock {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.65rem;
  max-width: 14.5rem;
  padding: 0.3rem 0.85rem 0.3rem 0.45rem;
  border-radius: 0.85rem;
  background: #f6f2ff;
  border: 1.5px solid #e4dbff;
  color: #5f33e1;
  line-height: 1.15;
}

.user-web-app .tb-live-clock__icon {
  flex: 0 0 auto;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 0.6rem;
  background: #efe9ff;
  color: #5f33e1;
  display: grid;
  place-items: center;
}

.user-web-app .tb-live-clock__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.user-web-app .tb-live-clock__time {
  display: block;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  color: #2f2b3d;
  white-space: nowrap;
}

.user-web-app .tb-live-clock__meta {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: #7c73a0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 767.98px) {
  .user-web-app .tb-live-clock {
    min-height: 2.25rem;
    padding: 0.25rem 0.6rem 0.25rem 0.35rem;
    max-width: 8.5rem;
  }

  .user-web-app .tb-live-clock__meta {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .user-web-app .tb-live-clock__icon {
    display: none;
  }

  .user-web-app .tb-live-clock {
    padding: 0.2rem 0.55rem;
  }

  .user-web-app .tb-live-clock__time {
    font-size: 0.8rem;
  }
}

.tb-dt-wrap,
.tb-dt-wrap.flatpickr-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 3.15rem;
  padding: 0 0.85rem;
  border: 1.5px solid #eceaf3;
  border-radius: 0.9rem;
  background: #fff;
}

.tb-dt-wrap.is-open,
.tb-dt-wrap:focus-within {
  border-color: #5f33e1;
  box-shadow: 0 0 0 3px rgba(95, 51, 225, 0.14);
  z-index: 6;
}

/* Keep overflowing date/time popups above later form fields so arrow clicks hit the popup. */
.tb-create-modal .mb-4:has(.tb-dt-wrap.is-open),
.tb-create-modal .row:has(.tb-dt-wrap.is-open),
.tb-create-modal [class*="col-"]:has(.tb-dt-wrap.is-open) {
  position: relative;
  z-index: 8;
}

.tb-dt-fp,
.tb-dt-wrap > .flatpickr-wrapper {
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

.tb-dt-icon,
.tb-dt-caret {
  position: static;
  transform: none;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  line-height: 1;
}

.tb-dt-icon {
  color: #5f33e1;
  font-size: 1.15rem;
}

.tb-dt-caret {
  color: #9b93b3;
  font-size: 1rem;
}

.tb-dt-wrap > input[type="hidden"] {
  display: none !important;
}

.tb-dt-wrap .tb-dt-input,
.tb-dt-wrap .form-control,
.tb-dt-wrap .tb-dt-toggle,
.light-style .tb-dt-wrap .form-control,
.light-style .tb-dt-wrap .flatpickr-input[readonly],
.light-style .tb-dt-wrap .form-control[readonly] {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  min-height: 0 !important;
  height: auto;
  padding: 0.7rem 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tb-dt-toggle {
  display: block;
  text-align: left;
  color: #2f2b3d;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tb-dt-toggle.is-placeholder {
  color: #a8aaae;
}

.flatpickr-calendar.tb-datepicker.open,
.tb-dt-wrap .flatpickr-calendar.tb-datepicker.open {
  z-index: 20 !important;
}

.tb-dt-wrap .flatpickr-calendar.tb-datepicker {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  left: 0 !important;
}

.flatpickr-calendar.tb-datepicker {
  border: 0;
  border-radius: 1.15rem !important;
  box-shadow: 0 18px 48px rgba(47, 43, 61, 0.18);
  padding: 0.4rem 0 0.35rem;
  overflow: hidden;
}

.tb-datepicker .flatpickr-months {
  padding: 0.2rem 0.2rem 0;
}

.tb-datepicker .flatpickr-month {
  background: transparent;
}

.tb-datepicker .flatpickr-current-month .cur-month,
.tb-datepicker .flatpickr-current-month input.cur-year {
  font-weight: 700;
  color: #2f2b3d;
}

.tb-datepicker .flatpickr-prev-month,
.tb-datepicker .flatpickr-next-month {
  border-radius: 0.65rem;
  padding: 0.15rem;
}

.tb-datepicker .flatpickr-prev-month:hover,
.tb-datepicker .flatpickr-next-month:hover {
  background: #f6f2ff;
}

.tb-datepicker .flatpickr-prev-month svg,
.tb-datepicker .flatpickr-next-month svg {
  fill: #5f33e1;
  stroke: #5f33e1;
}

.tb-datepicker .flatpickr-weekdays,
.tb-datepicker span.flatpickr-weekday {
  background: transparent;
}

.tb-datepicker span.flatpickr-weekday {
  color: #9b93b3;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.tb-datepicker .flatpickr-days {
  background: #fff;
  padding: 0.15rem 0.45rem 0.2rem;
  border: 0;
}

.tb-datepicker .flatpickr-day {
  border-radius: 0.65rem;
  color: #2f2b3d;
  font-weight: 600;
}

.tb-datepicker .flatpickr-day:hover {
  background: #f6f2ff;
  border-color: #ede7ff;
  color: #5f33e1;
}

.tb-datepicker .flatpickr-day.today {
  border-color: #5f33e1 !important;
  background: #f6f2ff !important;
  color: #5f33e1 !important;
}

.tb-datepicker .flatpickr-day.selected,
.tb-datepicker .flatpickr-day.selected:hover,
.tb-datepicker .flatpickr-day.selected:focus {
  background: #5f33e1 !important;
  border-color: #5f33e1 !important;
  color: #fff !important;
  box-shadow: 0 0.35rem 0.75rem rgba(95, 51, 225, 0.28);
}

.tb-datepicker .flatpickr-day.prevMonthDay,
.tb-datepicker .flatpickr-day.nextMonthDay {
  color: #c4c0d4;
}

.tb-datepicker-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem 0.7rem;
  border-top: 1px solid #f0eef6;
}

.tb-datepicker-today,
.tb-datepicker-done {
  border: 0;
  background: #f6f2ff;
  color: #5f33e1;
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: 0.65rem;
  min-height: 2.1rem;
  padding: 0 0.9rem;
}

.tb-datepicker-done {
  background: #5f33e1;
  color: #fff;
}

.tb-time-pop {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  width: 100%;
  min-width: 0;
  z-index: 30;
  background: #fff;
  border-radius: 1.15rem;
  box-shadow: 0 18px 48px rgba(47, 43, 61, 0.18);
  padding: 0.85rem 0.8rem 0.9rem;
  animation: tbPopIn 0.16s ease-out;
  pointer-events: auto;
  max-height: min(26rem, calc(100vh - 8rem));
  overflow-y: auto;
}

.tb-time-pop[hidden] {
  display: none !important;
}

@keyframes tbPopIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.tb-time-pop__title {
  font-weight: 700;
  color: #2f2b3d;
  margin-bottom: 0.75rem;
}

.tb-time-pop__face {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.tb-time-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f7f3ff;
  border-radius: 0.95rem;
  padding: 0.35rem 0.25rem 0.5rem;
}

.tb-time-step {
  width: 2.6rem;
  height: 2rem;
  border: 0;
  background: transparent;
  color: #5f33e1;
  display: grid;
  place-items: center;
  border-radius: 0.5rem;
  cursor: pointer;
  touch-action: manipulation;
}

.tb-time-step:hover {
  background: #efe9ff;
}

.tb-time-step .ti {
  pointer-events: none;
  font-size: 1.05rem;
}

.tb-time-value {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.2;
  color: #5f33e1;
  min-width: 2.2rem;
  text-align: center;
}

.tb-time-col-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9b93b3;
  margin-top: 0.1rem;
}

.tb-time-colon {
  font-size: 1.6rem;
  font-weight: 800;
  color: #5f33e1;
  padding-bottom: 1.1rem;
}

@media (max-width: 575.98px) {
  .tb-time-pop {
    left: 0;
    right: 0;
    width: 100%;
  }
}

/* Home dashboard — match product mock */
.user-web-app[data-page="home"] #plan-pill {
  display: none !important;
}

.user-web-app[data-page="home"] .tb-home-hello {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 700;
  color: #2f2b3d;
}

.user-web-app[data-page="home"] .tb-home-hello-sub {
  margin-top: 0.15rem;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #8b8798;
}

.user-web-app[data-page="home"] .tb-live-clock {
  background: #fff;
  border-color: #ece8f5;
  border-radius: 1.15rem;
  min-height: 3rem;
  padding: 0.35rem 0.95rem 0.35rem 0.45rem;
}

.tb-home {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.tb-home-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.tb-home-kpi {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 6.5rem;
  padding: 1.1rem 1.15rem;
  border-radius: 1.15rem;
  background: #fff;
  border: 1px solid #efeaf8;
  box-shadow: 0 10px 28px rgba(91, 80, 145, 0.05);
}

.tb-home-kpi__label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: #5f5b6b;
}

.tb-home-kpi__value {
  display: block;
  margin-top: 0.2rem;
  font-size: 1.85rem;
  line-height: 1.1;
  font-weight: 700;
  color: #2f2b3d;
}

.tb-home-kpi__hint {
  display: block;
  margin-top: 0.2rem;
  color: #9a96a8;
  font-size: 0.8rem;
}

.tb-home-kpi__icon {
  flex: 0 0 auto;
  width: 3.15rem;
  height: 3.15rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
}

.tb-home-kpi__icon.is-today { background: #efe9ff; color: #6d4cff; }
.tb-home-kpi__icon.is-done { background: #e6f8ee; color: #2fbf71; }
.tb-home-kpi__icon.is-overdue { background: #ffe8ea; color: #ff5a6a; }
.tb-home-kpi__icon.is-soon { background: #e8f3ff; color: #3b82f6; }

.tb-home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(16.5rem, 0.85fr);
  gap: 1.15rem;
  align-items: start;
}

.tb-home-side {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  min-width: 0;
}

.tb-home-panel {
  background: #fff;
  border: 1px solid #efeaf8;
  border-radius: 1.15rem;
  box-shadow: 0 10px 28px rgba(91, 80, 145, 0.05);
  min-width: 0;
}

.tb-home-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.15rem 1.2rem 0.35rem;
}

.tb-home-panel__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #2f2b3d;
}

.tb-home-panel__sub {
  margin: 0.15rem 0 0;
  color: #8b8798;
  font-size: 0.82rem;
}

.tb-home-panel__body {
  padding: 0.35rem 1.2rem 1.2rem;
}

.tb-home-viewall {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.2rem 0.85rem;
  border-radius: 999px;
  border: 1px solid #e4dbff;
  background: #f7f4ff;
  color: #6d4cff;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
}

.tb-home-viewall:hover,
.tb-home-viewall:focus-visible {
  color: #5a3de0;
  background: #efe9ff;
}

.tb-home-select {
  flex: 0 0 auto;
  width: auto;
  max-width: 9rem;
  min-width: 7.25rem;
  border-radius: 999px;
  border-color: #ece8f5;
  font-size: 0.8rem;
  font-weight: 600;
  color: #5f5b6b;
}

.tb-home-empty {
  text-align: center;
  padding: 1.25rem 0.5rem 0.5rem;
  color: #8b8798;
}

.tb-home-empty--today {
  padding: 1.75rem 0.75rem 1.1rem;
}

.tb-home-empty img {
  display: block;
  margin: 0 auto 0.85rem;
  object-fit: contain;
}

.tb-home-empty h5 {
  margin: 0 0 0.35rem;
  color: #2f2b3d;
  font-weight: 700;
}

.tb-home-empty p {
  margin: 0 0 1rem;
  color: #8b8798;
}

.tb-home-today {
  min-height: 18rem;
}

.tb-home-overdue {
  min-height: 18rem;
}

.tb-home-upcoming-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
}

.tb-home-upcoming-list:has(.tb-home-empty) {
  display: block;
}

.tb-up-card {
  display: grid;
  grid-template-columns: 1.45rem minmax(0, 1fr);
  column-gap: 0.55rem;
  align-items: start;
  min-width: 0;
  padding: 0.85rem 0.65rem 0.85rem 0.8rem;
  border: 1px solid #efeaf8;
  border-radius: 0.95rem;
  background: #fff;
}

.tb-up-card .tb-home-check {
  margin-top: 0.15rem;
}

.tb-up-card__main {
  min-width: 0;
}

.tb-up-card__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1.75rem;
  align-items: start;
  column-gap: 0.15rem;
}

.tb-up-card__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-width: 0;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
  color: #2f2b3d;
  text-decoration: none;
}

.tb-up-card__title:hover,
.tb-up-card__title:focus-visible {
  color: #6d4cff;
}

.tb-up-card.is-done .tb-up-card__title {
  text-decoration: line-through;
  color: #a8aaae;
}

.tb-up-card__head .dropdown {
  flex: 0 0 auto;
}

.tb-up-card__head .tb-home-more {
  width: 1.75rem;
  height: 1.75rem;
}

.tb-up-card__cat {
  display: block;
  margin-top: 0.2rem;
  color: #6d4cff;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tb-up-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.tb-up-card__when {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #8b8798;
  font-size: 0.75rem;
  white-space: nowrap;
}

.tb-up-card__when i {
  font-size: 0.85rem;
}

.tb-home-tip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0.15rem 0 0;
  color: #6d4cff;
  font-size: 0.82rem;
  font-weight: 500;
}

.tb-home-check.is-late {
  border-color: #ff9aa4;
  color: #ff5a6a;
}

.tb-home-check.is-late:hover,
.tb-home-check.is-late:focus-visible {
  border-color: #ff5a6a;
  background: #ff5a6a;
  color: #fff;
}

.tb-home-task {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid #f3eef8;
}

.tb-home-task:last-child {
  border-bottom: 0;
}

.tb-home-check {
  flex: 0 0 auto;
  width: 1.55rem;
  height: 1.55rem;
  margin-top: 0.1rem;
  border-radius: 50%;
  border: 1.5px solid #d9d2ea;
  background: #fff;
  color: transparent;
  display: grid;
  place-items: center;
  padding: 0;
  line-height: 1;
}

.tb-home-check i {
  font-size: 0.85rem;
}

.tb-home-check:hover,
.tb-home-check:focus-visible,
.tb-home-task.is-done .tb-home-check {
  border-color: #6d4cff;
  background: #6d4cff;
  color: #fff;
}

.tb-home-task__body {
  flex: 1 1 auto;
  min-width: 0;
}

.tb-home-task__title {
  display: block;
  font-weight: 600;
  color: #2f2b3d;
  text-decoration: none;
}

.tb-home-task__title:hover,
.tb-home-task__title:focus-visible {
  color: #6d4cff;
}

.tb-home-task.is-done .tb-home-task__title {
  text-decoration: line-through;
  color: #a8aaae;
}

.tb-home-task__cat {
  display: inline-block;
  margin-top: 0.15rem;
  color: #6d4cff;
  font-size: 0.78rem;
  font-weight: 600;
}

.tb-home-task__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.35rem;
  color: #8b8798;
  font-size: 0.78rem;
}

.tb-home-task__meta i {
  margin-right: 0.2rem;
}

.tb-home-prio-chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.35rem;
  padding: 0 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
}

.tb-home-prio-chip.is-high { background: #ffe8ea; color: #e23b4c; }
.tb-home-prio-chip.is-med { background: #fff4d6; color: #c48a00; }
.tb-home-prio-chip.is-low { background: #e6f8ee; color: #1ea05a; }
.tb-home-prio-chip.is-overdue { background: #ffe8ea; color: #e23b4c; }

.tb-home-more {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border: 0;
  background: transparent;
  color: #9a96a8;
  border-radius: 0.5rem;
}

.tb-home-more:hover,
.tb-home-more:focus-visible {
  background: #f6f2ff;
  color: #5f33e1;
}

.tb-home-charts {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(16rem, 0.85fr);
  gap: 1.15rem;
}

.tb-home-weekchart {
  padding: 0.25rem 0.75rem 1rem;
  min-height: 14rem;
}

.tb-home-weekchart svg {
  display: block;
  width: 100%;
  height: auto;
}

.tb-home-prio {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  padding: 0.5rem 1.2rem 1.25rem;
}

.tb-home-prio__donut {
  position: relative;
  width: 10.5rem;
  height: 10.5rem;
  flex: 0 0 auto;
}

.tb-home-prio__donut svg {
  display: block;
  width: 100%;
  height: 100%;
}

.tb-home-prio__center {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  pointer-events: none;
}

.tb-home-prio__center strong {
  font-size: 1.45rem;
  line-height: 1;
  color: #2f2b3d;
}

.tb-home-prio__center span {
  font-size: 0.72rem;
  color: #9a96a8;
}

.tb-home-prio__legend {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.tb-home-prio__legend li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
  font-size: 0.88rem;
  color: #5f5b6b;
}

.tb-home-prio__legend strong {
  margin-left: auto;
  font-size: 0.88rem;
  color: #2f2b3d;
}

.tb-home-prio__legend em {
  font-style: normal;
  font-weight: 500;
  color: #9a96a8;
}

.tb-home-prio__dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  flex: 0 0 auto;
}

@media (prefers-reduced-motion: reduce) {
  .tb-home-check,
  .tb-home-viewall,
  .tb-home-more {
    transition: none;
  }
}

@media (max-width: 1199.98px) {
  .tb-home-kpis,
  .tb-home-grid,
  .tb-home-charts {
    grid-template-columns: 1fr;
  }

  .tb-home-upcoming-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .user-web-app[data-page="home"] .tb-home-hello {
    font-size: 1.15rem;
  }

  .tb-home-kpis {
    grid-template-columns: 1fr 1fr;
  }

  .tb-home-upcoming-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tb-home-kpi {
    min-height: 5.5rem;
    padding: 0.9rem;
  }

  .tb-home-kpi__value {
    font-size: 1.45rem;
  }

  .tb-home-prio {
    flex-direction: column;
    align-items: stretch;
  }

  .tb-home-prio__donut {
    margin: 0 auto;
  }
}

@media (max-width: 575.98px) {
  .tb-home-kpis {
    grid-template-columns: 1fr;
  }

  .tb-home-upcoming-list {
    grid-template-columns: 1fr;
  }
}
