.leftside-menu .logo .logo-lg img {
  height: 30px;
  width: auto;
  max-width: 100%;
}

.module-switcher-toggle {
  gap: 10px;
  padding-inline: 10px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid transparent;
}

.module-switcher-badge,
.module-switcher-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
}

.module-switcher-menu {
  width: 430px;
  border: 0;
  border-radius: 22px;
  padding: 18px !important;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 12%, rgba(56, 189, 248, 0.16), transparent 30%),
    radial-gradient(circle at 92% 18%, rgba(245, 158, 11, 0.15), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
}

.module-switcher-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.module-switcher-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.module-switcher-license-btn {
  border: none;
  border-radius: 999px;
  padding: 6px 12px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.24);
}

.module-switcher-license-btn:hover,
.module-switcher-license-btn:focus {
  color: #ffffff;
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  box-shadow: 0 14px 26px rgba(29, 78, 216, 0.26);
}

.module-switcher-header strong {
  display: block;
  font-size: 16px;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.module-switcher-eyebrow {
  display: block;
  margin-bottom: 2px;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.module-switcher-current {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: transparent;
  color: #2563eb;
  font-size: 11px;
  font-weight: 800;
}

.module-switcher-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.module-switcher-item {
  position: relative;
  display: flex;
  min-height: 142px;
  padding: 18px 12px 16px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 20px;
  text-align: center;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 9px;
  color: #1e293b;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92)),
    radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.12), transparent 42%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.module-switcher-item:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.14);
  color: #0f172a;
}

.module-switcher-item.active {
  border-color: rgba(37, 99, 235, 0.62);
  background: transparent;
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.14), inset 0 0 0 1px rgba(37, 99, 235, 0.16);
}

.module-switcher-item::before {
  content: "";
  position: absolute;
  inset: 10px 10px auto;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.9), rgba(245, 158, 11, 0.9));
  opacity: 0;
  transform: scaleX(0.55);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.module-switcher-item:hover::before,
.module-switcher-item.active::before {
  opacity: 1;
  transform: scaleX(1);
}

.module-switcher-item .module-switcher-icon {
  width: 46px;
  height: 46px;
  font-size: 22px;
  margin-bottom: 2px;
}

.module-switcher-title {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.module-switcher-subtitle {
  font-size: 11px;
  line-height: 1.35;
  color: #64748b;
  max-width: 110px;
}

.module-switcher-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: #2563eb;
  font-size: 16px;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28);
}

.module-sidebar-pill {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 12px 14px;
  padding: 14px;
  border-radius: 18px;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.16);
}

.module-sidebar-pill::after {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  right: -48px;
  top: -46px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.module-sidebar-pill-icon {
  position: relative;
  z-index: 1;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.22);
  font-size: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.module-sidebar-pill > div {
  position: relative;
  z-index: 1;
}

.message-panel {
  min-height: 640px;
}

.message-avatar {
  width: 38px;
  height: 38px;
  object-fit: cover;
}

.message-conversation-list {
  max-height: 560px;
  overflow-y: auto;
}

.message-thread {
  height: 450px;
  overflow-y: auto;
  background:
    radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.08), transparent 28%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.message-row {
  display: flex;
  margin-bottom: 14px;
}

.message-row.is-mine {
  justify-content: flex-end;
}

.message-bubble {
  max-width: min(620px, 82%);
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 16px 16px 16px 4px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.message-row.is-mine .message-bubble {
  border-color: rgba(59, 130, 246, 0.28);
  border-radius: 16px 16px 4px 16px;
  background: #eff6ff;
}

.message-author {
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 800;
  color: #0f172a;
}

.message-time {
  margin-top: 8px;
  font-size: 11px;
  color: #64748b;
  text-align: right;
}

.message-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.message-image-preview {
  display: block;
  width: 138px;
  height: 104px;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: #ffffff;
  cursor: zoom-in;
}

.message-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.18s ease;
}

.message-image-preview:hover img {
  transform: scale(1.04);
}

.message-file-attachment {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 280px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
  color: inherit;
  text-decoration: none;
}

.message-file-attachment:hover {
  color: #0f172a;
  border-color: rgba(37, 99, 235, 0.34);
  background: #ffffff;
}

.message-file-attachment i {
  font-size: 20px;
  color: #2563eb;
}

.message-file-attachment span {
  min-width: 0;
}

.message-file-attachment strong,
.message-file-attachment small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-file-attachment small {
  color: #64748b;
}

.message-preview-modal {
  border: 0;
  border-radius: 20px;
  overflow: hidden;
}

.message-preview-modal .modal-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  background: #0f172a;
}

.message-preview-modal-image {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 12px;
}

.monthly-share-shell {
  overflow: hidden;
}

.monthly-share-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 14% 20%, rgba(255, 255, 255, 0.24), transparent 24%),
    linear-gradient(135deg, #0f766e 0%, #0f172a 72%);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.18);
}

.monthly-share-hero::after {
  content: "";
  position: absolute;
  right: -72px;
  bottom: -98px;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.18);
}

.monthly-share-hero > * {
  position: relative;
  z-index: 1;
}

.monthly-share-eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 8px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #ccfbf1;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.monthly-share-title {
  color: #fff;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.monthly-share-copy {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.76);
}

.monthly-share-preview-btn {
  border: 0;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.22);
}

.monthly-share-row-head,
.monthly-share-editor {
  display: grid;
  grid-template-columns: 150px minmax(180px, 0.9fr) minmax(220px, 1.15fr) minmax(230px, 1.1fr) minmax(170px, 0.8fr);
  gap: 12px;
  align-items: start;
}

.monthly-share-row-head {
  margin-bottom: 8px;
  padding: 0 14px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.monthly-share-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.monthly-share-storage {
  display: none;
}

.monthly-share-editor {
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.monthly-editor-host .monthly-share-editor {
  border: 0;
  padding: 0;
  background: transparent;
}

.monthly-editor-host .d-xl-none {
  display: block !important;
}

.monthly-planner-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 18px;
  background: #f8fafc;
}

.monthly-planner-summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #0f766e;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.monthly-share-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.monthly-share-platforms .form-check {
  margin: 0;
  padding: 7px 10px 7px 32px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  background: #ffffff;
}

.monthly-share-platforms .form-check-input {
  margin-left: -22px;
}

.monthly-share-files {
  grid-column: 1 / -1;
  padding: 14px;
  border: 1px dashed rgba(20, 184, 166, 0.36);
  border-radius: 16px;
  background: rgba(240, 253, 250, 0.72);
}

.monthly-share-files-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: #0f766e;
  font-weight: 900;
}

.monthly-share-files-title i {
  font-size: 18px;
}

.monthly-share-files-title small {
  color: #64748b;
  font-weight: 600;
}

.monthly-existing-files {
  grid-column: 1 / -1;
  padding: 14px;
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: 16px;
  background: rgba(239, 246, 255, 0.72);
}

.monthly-existing-file-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.monthly-existing-file-item {
  display: flex;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
}

.monthly-existing-file {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  background: #ffffff;
  color: inherit;
  text-decoration: none;
}

.monthly-existing-file:hover {
  color: #0f172a;
  border-color: rgba(37, 99, 235, 0.42);
}

.monthly-existing-file i {
  flex: 0 0 auto;
  font-size: 20px;
  color: #2563eb;
}

.monthly-existing-file span {
  min-width: 0;
}

.monthly-existing-file strong,
.monthly-existing-file small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.monthly-existing-file small {
  color: #64748b;
}

.monthly-existing-file-delete {
  flex: 0 0 auto;
  width: 42px;
  border-radius: 14px;
}

.monthly-share-calendar-modal {
  border: 0;
  border-radius: 24px;
  overflow: hidden;
}

.monthly-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.monthly-calendar-days {
  margin-bottom: 8px;
}

.monthly-calendar-day-name {
  padding: 8px 10px;
  border-radius: 12px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.monthly-calendar-cell {
  min-height: 132px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 16px;
  background: #ffffff;
}

.monthly-calendar-cell.is-empty {
  border-style: dashed;
  background: #f8fafc;
}

.monthly-calendar-cell.has-entry {
  border-color: rgba(20, 184, 166, 0.38);
  background: linear-gradient(180deg, #ecfeff 0%, #ffffff 100%);
}

.monthly-planner-cell {
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.monthly-planner-cell:hover {
  transform: translateY(-2px);
  border-color: rgba(20, 184, 166, 0.58);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.monthly-planner-cell-hint {
  margin-bottom: 8px;
  color: #0f766e;
  font-size: 11px;
  font-weight: 800;
  opacity: 0;
  transition: opacity 0.16s ease;
}

.monthly-planner-cell:hover .monthly-planner-cell-hint {
  opacity: 1;
}

.monthly-calendar-date {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-bottom: 8px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #0f172a;
  font-size: 12px;
  font-weight: 900;
}

.monthly-calendar-cell.has-entry .monthly-calendar-date {
  color: #ffffff;
  background: #0f766e;
}

.monthly-calendar-entry {
  display: block;
  width: 100%;
  padding: 8px;
  border: 0;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.05);
  text-align: left;
  cursor: pointer;
}

.monthly-calendar-entry + .monthly-calendar-entry {
  margin-top: 8px;
}

.monthly-calendar-entry strong {
  display: block;
  margin-bottom: 4px;
  color: #0f172a;
  font-size: 12px;
  line-height: 1.3;
}

.monthly-calendar-entry p {
  margin: 0 0 6px;
  color: #475569;
  font-size: 11px;
  line-height: 1.35;
}

.monthly-plan-card:hover {
  background: rgba(15, 118, 110, 0.1);
}

.monthly-calendar-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.monthly-calendar-platforms span {
  padding: 2px 6px;
  border-radius: 999px;
  background: #ccfbf1;
  color: #0f766e;
  font-size: 10px;
  font-weight: 800;
}

.monthly-calendar-files {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.monthly-calendar-files span {
  padding: 2px 6px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 10px;
  font-weight: 800;
}

.dataTables_wrapper {
  width: 100%;
}

.dataTables_wrapper .dataTables_scroll,
.dataTables_wrapper .dataTables_scrollHead,
.dataTables_wrapper .dataTables_scrollBody,
.table-responsive {
  max-width: 100%;
}

.dataTables_wrapper .dataTables_scrollBody,
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.dataTables_wrapper .dataTables_scrollBody {
  scrollbar-width: thin;
}

.dataTables_wrapper table.dataTable th,
.dataTables_wrapper table.dataTable td {
  white-space: nowrap;
}

@media (max-width: 767.98px) {
  .dataTables_wrapper table.dataTable {
    min-width: 920px;
  }

  .dataTables_wrapper .row {
    row-gap: 10px;
  }

  .dataTables_wrapper div.dataTables_filter,
  .dataTables_wrapper div.dataTables_length,
  .dataTables_wrapper div.dataTables_info,
  .dataTables_wrapper div.dataTables_paginate {
    text-align: left;
  }

  .dataTables_wrapper div.dataTables_filter input {
    width: 100%;
    margin-left: 0;
    margin-top: 6px;
  }
}

@media (max-width: 1199.98px) {
  .monthly-share-row-head {
    display: none !important;
  }

  .monthly-share-editor {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .monthly-share-editor > div:nth-child(3),
  .monthly-share-editor > div:nth-child(4),
  .monthly-share-editor > div:nth-child(5),
  .monthly-share-editor > div:nth-child(6),
  .monthly-share-editor > div:nth-child(7) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767.98px) {
  .module-switcher-menu {
    width: 340px;
  }

  .module-switcher-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .module-switcher-item {
    min-height: 128px;
    padding: 16px 8px 12px;
  }

  .module-switcher-subtitle {
    display: none;
  }

  .message-panel {
    min-height: auto;
  }

  .message-thread {
    height: 360px;
  }

  .message-bubble {
    max-width: 94%;
  }

  .message-image-preview {
    width: 118px;
    height: 90px;
  }

  .monthly-share-hero {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px;
  }

  .monthly-share-editor {
    display: block;
  }

  .monthly-share-editor > div + div {
    margin-top: 12px;
  }

  .monthly-calendar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .monthly-calendar-days {
    display: none;
  }

  .monthly-calendar-cell.is-empty {
    display: none;
  }

  .monthly-existing-file-list {
    grid-template-columns: 1fr;
  }
}

:root {
  --footer-fixed-space: 92px;
}

.content-page {
  padding-bottom: calc(var(--footer-fixed-space) + 1rem);
}

.footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1030;
  height: auto;
  min-height: var(--tz-footer-height);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  background-color: var(--tz-body-bg);
  border-top: 1px solid var(--tz-border-color);
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
}

.footer .small {
  line-height: 1.15;
}

.footer-meta {
  margin-top: 0.35rem;
  text-align: center;
  line-height: 1.05;
}

.footer.footer-alt {
  left: 0;
}

body.authentication-bg .account-pages {
  padding-bottom: calc(var(--footer-fixed-space) + 2rem);
}

@media (max-width: 991.98px) {
  :root {
    --footer-fixed-space: 126px;
  }

  .footer {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }
}
