html,
body {
  margin: 0;
  padding: 0;
}

body {
  background:
    radial-gradient(circle at top left, rgba(210, 229, 255, 0.7), transparent 28%),
    linear-gradient(180deg, #f4f7fb 0%, #edf2f7 100%);
  min-height: 100vh;
}

.navbar {
  background: linear-gradient(135deg, #12385f 0%, #234f7f 55%, #2f6a9f 100%) !important;
}

.navbar .nav-link {
  opacity: 0.9;
}

.navbar .nav-link:hover {
  opacity: 1;
}

.navbar .nav-link.active {
  opacity: 1;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.28rem;
}

.card {
  border: 0;
  border-radius: 1.25rem;
  box-shadow: 0 18px 40px rgba(15, 43, 78, 0.08);
}

.btn,
.form-control,
.form-select {
  border-radius: 0.95rem;
}

.page-toolbar h1 {
  color: #16324f;
}

#calendar-widget .ui-datepicker {
  width: 100%;
  border: 1px solid #d8e3ef;
  border-radius: 1.15rem;
  padding: 0.75rem;
  box-shadow: none;
}

.compact-calendar #calendar-widget .ui-datepicker,
.compact-calendar-card #calendar-widget .ui-datepicker,
#events-page #calendar-widget .ui-datepicker {
  max-width: 360px;
  margin: 0 auto;
  padding: 0.7rem;
}

.compact-calendar #calendar-widget .ui-state-default,
.compact-calendar-card #calendar-widget .ui-state-default,
#events-page #calendar-widget .ui-state-default {
  padding: 0.62rem 0.24rem;
  border-radius: 0.8rem;
}

#calendar-widget .ui-datepicker-header {
  border: 0;
  background: transparent;
  color: #16324f;
  font-weight: 700;
}

#calendar-widget .ui-datepicker-calendar th {
  color: #62748a;
  font-size: 0.82rem;
  font-weight: 700;
}

#calendar-widget .ui-datepicker-calendar td {
  padding: 0.18rem;
}

#calendar-widget .ui-state-default {
  border: 1px solid transparent;
  background: #fff;
  color: #16324f;
  border-radius: 0.9rem;
  text-align: center;
  padding: 0.7rem 0.25rem;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

#calendar-widget td.future-selectable-day a:hover,
#calendar-widget td.future-selectable-day a:focus {
  background: #eef5ff;
  border-color: #8bb4e8;
  color: #16324f;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(31, 74, 124, 0.12);
}

#calendar-widget td.other-month-past a,
#calendar-widget td.other-month-past span.ui-state-default {
  color: #667b92;
  background: #f7fafc;
}

#calendar-widget td.other-month-future a,
#calendar-widget td.other-month-future span.ui-state-default {
  color: #345775;
  background: #edf4fb;
}

#calendar-widget td.has-event a {
  background: linear-gradient(180deg, #fff4de 0%, #ffe3b1 100%);
  border-color: #f0b44c;
  color: #8a5200;
  font-weight: 700;
}

#calendar-widget td.room-warning-day a,
#calendar-widget td.room-warning-day span.ui-state-default {
  background: linear-gradient(180deg, #fff1f2 0%, #fecdd3 100%) !important;
  border-color: #dc2626 !important;
  color: #991b1b !important;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.18);
  font-weight: 700;
}

#calendar-widget td.past-event-day a,
#calendar-widget td.past-event-day span.ui-state-default {
  background: linear-gradient(180deg, #f3f5f8 0%, #dfe5ec 100%);
  border-color: #b9c4d1;
  color: #5a6b7d;
  font-weight: 700;
}

#calendar-widget td.past-empty-day,
#calendar-widget td.ui-datepicker-unselectable.past-empty-day {
  opacity: 1 !important;
}

#calendar-widget td.past-empty-day span.ui-state-default,
#calendar-widget td.past-empty-day a,
#calendar-widget td.ui-datepicker-unselectable.past-empty-day span.ui-state-default,
#calendar-widget td.ui-datepicker-unselectable.past-empty-day a {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  color: #7b8898 !important;
  cursor: default;
  opacity: 1 !important;
}

#calendar-widget td.selected-event-day a,
#calendar-widget .ui-datepicker-current-day a {
  background: #1f4a7c !important;
  border-color: #1f4a7c !important;
  color: #fff !important;
}

.calendar-legend {
  color: #54677e;
  font-size: 0.9rem;
}

.legend-dot {
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
  vertical-align: middle;
}

.legend-has-event {
  background: #f0b44c;
}

.legend-selected {
  background: #1f4a7c;
}
.calendar-year-trigger {
  flex: 0 0 auto;
  white-space: nowrap;
}

.year-calendar-dialog {
  max-width: min(1500px, calc(100vw - 2rem));
}

.year-calendar-header-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.year-calendar-current {
  min-width: 5rem;
  text-align: center;
  font-weight: 700;
  color: #16324f;
}

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

.year-calendar-month {
  border: 1px solid #d8e3ef;
  border-radius: 0.75rem;
  padding: 0.75rem;
  background: #fff;
}

.year-calendar-month-title {
  width: 100%;
  border: 0;
  background: transparent;
  color: #16324f;
  font-weight: 700;
  text-align: left;
  padding: 0 0 0.55rem;
  text-transform: capitalize;
}

.year-calendar-month-title:hover,
.year-calendar-month-title:focus {
  color: #1f4a7c;
  text-decoration: underline;
  text-underline-offset: 0.18rem;
}

.year-calendar-weekdays,
.year-calendar-days {
  --year-day-gap: 0.22rem;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: var(--year-day-gap);
}

.year-calendar-days {
  position: relative;
}

.year-calendar-weekend-frame {
  position: absolute;
  top: -0.12rem;
  bottom: -0.12rem;
  left: calc((((100% - (6 * var(--year-day-gap))) / 7) * 5) + (5 * var(--year-day-gap)) - 0.12rem);
  right: -0.12rem;
  border: 1px solid rgba(244, 114, 182, 0.28);
  border-radius: 0.55rem;
  pointer-events: none;
  z-index: 0;
}

.year-calendar-weekdays {
  margin-bottom: 0.35rem;
  color: #62748a;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
}


.year-calendar-day {
  position: relative;
  z-index: 1;
  aspect-ratio: 1;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 0.45rem;
  background: #f8fafc;
  color: #16324f;
  font-size: 0.78rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

button.year-calendar-day:hover,
button.year-calendar-day:focus {
  border-color: #8bb4e8;
  background: #eef5ff;
}

.year-calendar-empty {
  background: transparent;
}


.year-calendar-day.has-event {
  background: linear-gradient(180deg, #fff4de 0%, #ffe3b1 100%);
  border-color: #f0b44c;
  color: #8a5200;
  font-weight: 700;
}

.year-calendar-day.room-warning-day {
  background: linear-gradient(180deg, #fff1f2 0%, #fecdd3 100%) !important;
  border-color: #dc2626 !important;
  color: #991b1b !important;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.14);
  font-weight: 700;
}

.year-calendar-day.is-today {
  outline: 2px solid rgba(31, 74, 124, 0.35);
  outline-offset: 1px;
}

.year-calendar-day.is-selected {
  background: #1f4a7c !important;
  border-color: #1f4a7c !important;
  color: #fff !important;
}

.year-calendar-loading {
  grid-column: 1 / -1;
  padding: 2rem 1rem;
  text-align: center;
}

@media (max-width: 1199.98px) {
  .year-calendar-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

@media (max-width: 499.98px) {
  .year-calendar-grid {
    grid-template-columns: 1fr;
  }
}

.occupancy-list,
.events-list,
.support-requests-list,
.support-chat-messages {
  display: grid;
  gap: 1rem;
}

#calendar-day-summary {
  min-height: 0;
  max-height: none;
}

#occupancy-list {
  flex: 0 0 auto;
  min-height: 520px;
  max-height: 520px;
  overflow-y: auto;
  overflow-x: hidden;
  align-content: start;
  padding-right: 0.35rem;
  scrollbar-gutter: stable;
}



.multi-select {
  position: relative;
}


.multi-select,
.multi-select *,
.multi-select *::before,
.multi-select *::after {
  box-sizing: border-box;
}

.multi-select button,
.multi-select input {
  font: inherit;
}

.multi-select-toggle,
.multi-select-clear,
.multi-select-tag-remove {
  appearance: none;
  -webkit-appearance: none;
}

.multi-select-toggle {
  cursor: pointer;
}

.multi-select-toggle:focus-visible,
.multi-select-input:focus-visible {
  outline: none;
}

.multi-select-menu {
  width: 100%;
}

.multi-select-control {
  width: 100%;
}

.multi-select-input {
  width: auto;
}

.multi-select-option {
  width: 100%;
  border-radius: 0.65rem;
}

.multi-select-option input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}
.multi-select-toggle {
  width: 100%;
  min-height: 2.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.95rem;
  border: 1px solid #d8e3ef;
  border-radius: 0.95rem;
  background: #fff;
  color: #183b60;
  text-align: left;
  box-shadow: inset 0 1px 2px rgba(15, 43, 78, 0.04);
}

.multi-select-toggle[aria-expanded="true"] {
  border-color: #8ab4e1;
  box-shadow: 0 0 0 0.2rem rgba(31, 111, 235, 0.12);
}

.multi-select-placeholder {
  min-width: 0;
  flex: 1 1 auto;
}

.multi-select-chevron {
  width: 0.65rem;
  height: 0.65rem;
  border-right: 2px solid #6c8099;
  border-bottom: 2px solid #6c8099;
  transform: rotate(45deg);
  flex: 0 0 auto;
  margin-top: -0.2rem;
}

.multi-select-menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  right: 0;
  z-index: 30;
  border: 1px solid #d9e4ef;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 18px 32px rgba(15, 43, 78, 0.12);
  padding: 0.75rem;
}
.multi-select-menu.multi-select-floating {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1080;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  overflow: hidden;
}

.multi-select-menu.multi-select-floating .multi-select-control {
  flex: 0 0 auto;
  margin-bottom: 0;
}

.multi-select-menu.multi-select-floating .multi-select-option-select-all {
  flex: 0 0 auto;
  margin-bottom: 0;
  padding-bottom: 0.45rem;
}

.multi-select-menu.multi-select-floating .multi-select-options {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
}


.multi-select-control {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: nowrap;
  min-height: 2.75rem;
  max-height: 2.75rem;
  overflow: hidden;
  margin-bottom: 0.75rem;
  padding: 0.4rem 0.5rem;
  border: 1px solid #d8e3ef;
  border-radius: 0.85rem;
  background: #fff;
}

.multi-select-tags {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

.multi-select-tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  max-width: 12rem;
  padding: 0.18rem 1.75rem 0.18rem 0.5rem;
  border-radius: 0.45rem;
  background: #eef3f8;
  color: #40566f;
  font-size: 0.86rem;
  white-space: nowrap;
  overflow: hidden;
}

.multi-select-tag > span {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.multi-select-tag-remove {
  position: absolute;
  top: 0;
  left: calc(100% - 1.5rem);
  right: 0;
  bottom: 0;
  display: grid;
  place-items: center;
  min-width: 1.5rem;
  border: 0;
  background: transparent;
  color: #dc3545;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  transition: left 0.22s ease, background-color 0.22s ease, color 0.22s ease;
}

.multi-select-tag-remove::after {
  content: "Убрать";
  position: absolute;
  font-size: 0.72rem;
  opacity: 0;
  transform: translateX(0.35rem);
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.multi-select-tag.is-removing .multi-select-tag-remove,
#event-tag-selected .multi-select-tag:hover .multi-select-tag-remove,
.multi-select-tag:focus-within .multi-select-tag-remove {
  left: 0;
  padding: 0;
  border-radius: 0.45rem;
  background: #dc3545;
  color: #fff;
  font-size: 0;
}

.multi-select-tag.is-removing .multi-select-tag-remove::after,
#event-tag-selected .multi-select-tag:hover .multi-select-tag-remove::after,
.multi-select-tag:focus-within .multi-select-tag-remove::after {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.08s;
}

.multi-select-input {
  flex: 1 1 8rem;
  min-width: 6rem;
  border: 0;
  outline: 0;
  background: transparent;
  color: #183b60;
  padding: 0.2rem 0;
}

.multi-select-clear {
  border: 0;
  background: transparent;
  color: #e05b3d;
  font-size: 1.05rem;
  line-height: 1;
  padding: 0 0.2rem;
}

.multi-select-options {
  display: grid;
  gap: 0.2rem;
  max-height: 240px;
  overflow-y: auto;
}

.multi-select-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.35rem;
  background: #fff;
  color: #183b60;
  cursor: pointer;
}

.multi-select-option-select-all {
  padding: 0.35rem 0.35rem 0.65rem;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid #e5edf5;
}

.multi-select-option:hover {
  background: #f7fbff;
}

.room-moderator-badge {
  margin-left: auto;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  background: #e4f4ea;
  color: #17663b;
  font-size: 0.75rem;
  white-space: nowrap;
}

.room-moderator-badge.is-mine {
  background: #ccefd8;
  color: #0d5c2b;
  font-weight: 700;
}

.room-moderator-badge.is-foreign {
  background: #f1f4f7;
  color: #66798e;
}

.event-save-dialog {
  width: min(100% - 2rem, 30rem);
  border: 0;
  border-radius: 1rem;
  padding: 1.25rem;
  color: #183b60;
  box-shadow: 0 1.5rem 4rem rgba(24, 59, 96, 0.25);
}

.event-save-dialog::backdrop {
  background: rgba(9, 29, 52, 0.45);
}

.event-draft-minimized {
  position: fixed;
  right: 6rem;
  bottom: 1.25rem;
  z-index: 1040;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-width: 17rem;
  border: 0;
  border-radius: 0.9rem 0.9rem 0 0;
  background: #1f4a7c;
  color: #fff;
  overflow: hidden;
  box-shadow: 0 0.75rem 2rem rgba(15, 43, 78, 0.25);
}

.support-channel-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.event-draft-minimized-open {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
  padding: 0.75rem 0.65rem 0.75rem 1rem;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.event-draft-minimized-open:hover,
.event-draft-minimized-open:focus-visible {
  background: #163b66;
  outline: none;
}

.event-draft-minimized-delete {
  display: grid;
  width: 1.9rem;
  height: 1.9rem;
  place-items: center;
  margin-right: 0.65rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: #dc3545;
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.event-draft-minimized-delete:hover,
.event-draft-minimized-delete:focus-visible {
  border-color: #fff;
  background: #b42331;
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 1px;
}

.event-draft-minimized-label {
  font-size: 0.78rem;
  font-weight: 700;
}

.event-draft-minimized-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 767.98px) {
  .event-draft-minimized {
    right: 0.85rem;
    bottom: 5rem;
    width: calc(100% - 1.7rem);
    min-width: 0;
  }
}

.multi-select-option input {
  margin-top: 0;
}

.occupancy-filter-panel {
  position: relative;
  z-index: 8;
  border: 1px solid #d9e4ef;
  border-radius: 1rem;
  padding: 0.85rem;
  background: #f9fbfd;
}

.occupancy-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.occupancy-room-results {
  display: grid;
  gap: 0.45rem;
  max-height: 220px;
  overflow-y: auto;
}

.occupancy-room-option {
  width: 100%;
  border: 1px solid #d8e3ef;
  border-radius: 0.85rem;
  background: #fff;
  color: #183b60;
  padding: 0.65rem 0.8rem;
  text-align: left;
}

.occupancy-room-option.active {
  background: #eef6ff;
  border-color: #1f6feb;
}

@media (min-width: 1200px) {
  #calendar-page .calendar-column,
  #calendar-page .occupancy-column {
    display: flex;
    align-items: flex-start;
  }

  #calendar-page .calendar-column > .card {
    width: 100%;
  }

  #calendar-page .occupancy-card {
    width: 100%;
    height: auto !important;
  }

  #calendar-page .occupancy-card .card-body {
    min-height: auto;
    height: auto;
    flex: 0 0 auto;
  }

  #calendar-page #occupancy-list {
    min-height: 520px;
    max-height: 520px;
  }
}

.occupancy-item {
  border-radius: 1rem;
  padding: 0.85rem;
  border: 1px solid #d9e4ef;
  background: #fff;
}

.occupancy-item.busy {
  background: linear-gradient(180deg, #fff6f6 0%, #ffffff 100%);
}

.occupancy-item.free {
  background: linear-gradient(180deg, #f4fff7 0%, #ffffff 100%);
}

button.occupancy-item {
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
}

.occupancy-create-shortcut {
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.occupancy-create-shortcut:hover {
  border-color: #6ca8e8;
  box-shadow: 0 0.4rem 1rem rgba(27, 94, 160, 0.12);
  transform: translateY(-1px);
}

.occupancy-event-list {
  display: grid;
  gap: 0.2rem;
}

.occupancy-event-shortcut {
  width: 100%;
  padding: 0.2rem 0.25rem;
  border: 0;
  border-radius: 0.35rem;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.occupancy-event-shortcut:hover,
.occupancy-event-shortcut:focus-visible {
  background: rgba(37, 99, 235, 0.1);
  color: #174ea6;
  outline: none;
}

.occupancy-create-shortcut:focus-visible {
  outline: 3px solid rgba(13, 110, 253, 0.28);
  outline-offset: 2px;
}











.event-card {
  display: grid;
  grid-template-columns: minmax(180px, 230px) minmax(0, 1fr);
  min-height: 178px;
  overflow: hidden;
  border: 1px solid #e1e9f2;
  border-radius: 18px;
  background: #fff;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.event-card:hover {
  transform: translateY(-1px);
  border-color: #cbd9ea;
  box-shadow: 0 10px 28px rgba(47, 80, 118, 0.08);
}

.event-card-highlight {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.event-card.event-card-room-warning {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.event-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
  color: #10233f;
}

.event-card-media {
  position: relative;
  min-height: 178px;
  overflow: hidden;
  background: #dfe8f3;
}

.event-card-media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-card:not(.has-image) {
  grid-template-columns: minmax(0, 1fr);
}

.event-card-date-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  min-width: 58px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  background: rgba(20, 32, 48, 0.78);
  color: #fff;
  text-align: center;
  line-height: 1;
  backdrop-filter: blur(8px);
}

.event-card-date-badge strong {
  display: block;
  margin-bottom: 5px;
  font-size: 25px;
}

.event-card-date-badge span {
  font-size: 13px;
}

.event-card-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 15px 16px 14px 18px;
}

.event-card-top,
.event-card-title-row,
.event-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.event-card-top {
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.event-card-title-row {
  min-width: 0;
}

.event-actions {
  flex: 0 0 auto;
}

.event-actions .btn {
  min-height: 34px;
  padding-inline: 14px;
  border-radius: 999px;
}

.event-card .event-actions {
  display: flex;
  flex-wrap: nowrap;
  justify-content: end;
}

.event-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 34px;
  overflow: hidden;
  padding: 0 8px !important;
  white-space: nowrap;
}

.event-action-icon-svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.event-action-label {
  max-width: 0;
  margin-left: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-width 0.24s ease, margin-left 0.24s ease, opacity 0.16s ease;
}

.event-action-icon:hover .event-action-label,
.event-action-icon:focus-visible .event-action-label {
  max-width: 120px;
  margin-left: 6px;
  opacity: 1;
}

.event-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 16px;
  row-gap: 5px;
  margin-top: 8px;
  color: #566b84;
  font-size: 13px;
}

.event-card-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.event-card-meta-item svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  fill: none;
  stroke: #365a80;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.event-card-description-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-top: 8px;
}

.event-description-preview {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-width: 0;
  color: #3e5877;
  font-size: 14px;
  line-height: 1.45;
}

.event-description-toggle {
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #0969ff;
  font-size: 14px;
}

.event-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px 12px;
  margin-top: auto;
  padding-top: 9px;
  color: #62748a;
  font-size: 13px;
}

.event-footer i {
  width: 1px;
  height: 15px;
  background: #d4deea;
}

.event-department-badge {
  display: inline-flex;
  padding: 3px 9px;
  border-radius: 999px;
  background: #eaf4ff;
  color: #1672e8;
}

.event-footer-person {
  color: #0b63e5;
}

.empty-state {
  border: 1px dashed #c6d5e5;
  border-radius: 1.1rem;
  padding: 2rem;
  color: #62748a;
  text-align: center;
  background: rgba(255, 255, 255, 0.7);
}

.summary-row {
  padding: 0.75rem 0;
  border-bottom: 1px solid #e4edf6;
}

.summary-row:last-child {
  border-bottom: 0;
}

.summary-row-room-warning {
  border: 1px solid #dc2626;
  border-radius: 0.75rem;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

.event-schedule-card,
.press-rules-box,
.press-checklist,
.detail-card {
  border: 1px solid #d9e4ef;
  border-radius: 1rem;
  background: #f9fbfd;
}

.event-schedule-card,
.press-checklist,
.detail-card {
  padding: 1rem;
}

.detail-card.detail-card-room-warning {
  border-color: #f1aeb5;
  background: #fff1f2;
}

.press-rules-box {
  padding: 1rem 1.1rem;
  background: #fff8e8;
}

.event-schedule-card {
  background: linear-gradient(180deg, #fbfdff 0%, #f4f8fc 100%);
}

.event-time-select {
  max-width: 10rem;
}

.event-all-day-check {
  min-height: 2.65rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.event-recurrence-summary,
.recurrence-preview {
  min-height: 2.75rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid #d9e4ef;
  border-radius: 0.85rem;
  background: #f7fbff;
  color: #244059;
  font-size: 0.94rem;
}

.event-online-note {
  padding-top: 0.25rem;
  color: #8a4a2f;
}

.event-online-inline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
}

.recurrence-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.45rem;
}

.recurrence-weekday {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  border: 1px solid #d7e4f0;
  border-radius: 0.8rem;
  background: #f7f9fc;
  color: #26415c;
  font-weight: 600;
  cursor: pointer;
}

.recurrence-weekday:has(input:checked) {
  border-color: #2f5f95;
  background: #dbe9f8;
  color: #193a61;
}

.recurrence-weekday input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.recurrence-end-mode {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.recurrence-result-label {
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #26415c;
}

.press-step-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.step-pane {
  display: none;
}

.step-pane.active-step {
  display: block;
}

#eventDetailsModal.show {
  display: flex !important;
  align-items: center;
}

#eventDetailsModal .modal-dialog {
  width: min(680px, calc(100vw - 28px));
  max-width: 680px;
  min-height: 0;
  height: auto;
  margin: auto;
}

#eventDetailsModal .modal-content {
  position: relative;
  height: auto;
  max-height: min(760px, calc(100dvh - 36px));
  overflow: hidden;
  border-radius: 8px;
  color: #173653;
}

#eventDetailsModal .event-details-scroller {
  min-height: 0;
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #aeb9c5 transparent;
}

.event-details-hero-stack {
  position: relative;
  z-index: 1;
  margin: 0 13px;
  background: #fff;
}

#eventDetailsModal .has-image .event-details-hero-stack {
  position: sticky;
  top: 0;
  z-index: 0;
}

.event-details-title-field {
  position: relative;
  z-index: 3;
  min-height: 74px;
  padding: 19px 52px 8px 16px;
  background: #fff;
}

#details-title {
  font-size: 31px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.035em;
}

#details-meta {
  margin-top: 5px;
}

#eventDetailsModal .event-details-floating-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 14px rgba(20, 49, 82, 0.18);
}

.event-details-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px 14px 0 0;
}

.event-details-sheet {
  position: relative;
  z-index: 2;
  margin: 0 13px 18px;
  padding: 0 18px 12px;
  background: #fff;
}

#eventDetailsModal .has-image .event-details-sheet {
  margin-top: -48px;
  border-radius: 26px 26px 0 0;
  background: linear-gradient(to bottom, rgba(232, 241, 246, 0.70), rgba(239, 246, 249, 0.80) 86px, rgba(248, 250, 252, 0.95) 180px, #fff 280px);
  backdrop-filter: blur(24px) saturate(116%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 -10px 28px rgba(24, 52, 82, 0.07);
}

.event-details-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #1f6ed4;
  background: #eef5fc;
}

.event-details-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.event-details-label {
  margin-bottom: 5px;
  color: #7186a0;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.event-details-value {
  color: #405b7c;
  font-size: 13px;
  line-height: 1.58;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.event-details-value strong {
  color: #173653;
}

.event-details-contact {
  margin-top: 3px;
  color: #6b7f95;
  font-size: 12px;
  font-weight: 400;
}

.support-stream-link-editor {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: min(100%, 28rem);
  white-space: normal;
}

.support-stream-link-editor .form-control {
  min-width: 0;
}

.support-stream-link-editor .btn {
  display: inline-grid;
  place-items: center;
  flex: 0 0 2rem;
  width: 2rem;
  height: 2rem;
  padding: 0;
}

.event-details-link-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.event-details-link-row a {
  min-width: 0;
  overflow-wrap: anywhere;
}

.event-details-title-link {
  color: #0b63e5;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.event-details-link-row .btn {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.event-details-date {
  font-size: 18px;
  line-height: 1.3;
  font-weight: 750;
}

.event-details-primary-meta {
  display: grid;
  grid-template-columns: 1.45fr 0.75fr;
  padding: 12px 0 17px;
  border-bottom: 1px solid #d3e0ec;
}

#eventDetailsModal .has-image .event-details-primary-meta {
  padding-top: 16px;
  border-bottom: 0;
}

.event-details-primary-item,
.event-details-person-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  min-width: 0;
  padding: 3px 16px;
}

.event-details-primary-item + .event-details-primary-item,
.event-details-person-item + .event-details-person-item {
  border-left: 1px solid #d3e0ec;
}

.event-details-section {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 8px;
  border-top: 1px solid #d3e0ec;
}

.event-details-section .event-details-icon {
  width: 44px;
  height: 44px;
}

#details-body > .event-details-section:first-of-type {
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  padding-inline: 0;
}

#details-body > .event-details-section:first-of-type .event-details-icon {
  width: 28px;
  height: 28px;
}

#details-body > .event-details-section:first-of-type .event-details-icon svg {
  width: 18px;
  height: 18px;
}

#details-body > .event-details-section:first-of-type .event-details-value {
  font-size: 15px;
  line-height: 1.5;
}

.event-details-section h2 {
  margin: 1px 0 7px;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 700;
}

.event-details-section-warning {
  margin-inline: -8px;
  padding-inline: 16px;
  border-radius: 12px;
  background: #fff1f2;
}

.event-details-people-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 14px 8px;
  border-top: 1px solid #d3e0ec;
}

.event-details-person-item {
  grid-template-columns: 44px minmax(0, 1fr);
  padding: 4px 8px;
}

.event-details-person-item + .event-details-person-item {
  padding-left: 18px;
}

.event-details-person-item .event-details-icon {
  width: 42px;
  height: 42px;
}

#eventDetailsModal .modal-footer {
  min-height: 58px;
  padding: 8px 13px;
}

#eventDetailsModal .modal-footer .btn {
  min-height: 31px;
  padding: 3px 11px;
  border-radius: 11px;
  font-size: 13px;
}

.detail-card.full-width {
  grid-column: 1 / -1;
}

.detail-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #688098;
  margin-bottom: 0.4rem;
}

.detail-value {
  color: #1d3857;
}

.filters-card {
  position: sticky;
  top: 1rem;
  z-index: 2;
}

.events-mode-toolbar {
  margin-bottom: 0;
}

.events-mode-toolbar .btn.active {
  background: #1f5fa8;
  border-color: #1f5fa8;
  color: #fff;
}

.support-request-card {
  width: 100%;
  border: 1px solid #d8e3ef;
  border-radius: 1rem;
  padding: 1rem;
  background: #fff;
}

.support-request-card.active {
  border-color: #1f4a7c;
  box-shadow: 0 10px 22px rgba(20, 62, 105, 0.08);
}

.support-request-card-wrap {
  position: relative;
}

.support-request-card-wrap.has-event-link .support-request-card {
  padding-right: 3.75rem;
}

.support-request-open-event {
  position: absolute;
  right: 0.75rem;
  top: 0.75rem;
  z-index: 1;
  min-width: 34px;
  min-height: 34px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 5px 12px rgba(13, 110, 253, 0.2);
}

.support-request-open-event:hover,
.support-request-open-event:focus-visible {
  background: #0b5ed7;
  border-color: #0a58ca;
  color: #fff;
}

.support-chat-panel {
  position: relative;
  padding: 1rem;
  border: 1px solid #cad9e8;
  border-radius: 1rem;
  background: #fff;
}

.support-chat-messages {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-height: 420px;
  overflow-y: auto;
  padding: 0.25rem;
}

#requests-page:not(.requests-widget-layout) .support-chat-messages {
  min-height: 240px;
}

#support-chat-empty {
  flex: 1;
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 0 !important;
  border: 0;
  background: transparent;
}

#support-request-details {
  overflow: visible;
  margin-bottom: 0.9rem !important;
}

#support-message-form .input-group {
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem;
  border: 1px solid #d6e2ef;
  border-radius: 1rem;
  background: #f8fbff;
  box-shadow: 0 5px 16px rgba(22, 61, 103, 0.06);
}

#support-message-form .form-control {
  height: 40px;
  min-height: 40px;
  max-height: 120px;
  padding: 10px 0.75rem;
  border: 0;
  background: transparent;
  box-shadow: none;
  line-height: 20px;
  resize: none;
}

#support-message-form .input-group > .btn {
  display: inline-grid;
  flex: 0 0 40px;
  width: 40px;
  min-height: 40px;
  place-items: center;
  margin-left: 0;
  padding: 0;
  border: 0;
  border-radius: 0.75rem !important;
}

.support-composer-icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#support-attachment-pick {
  background: #eaf1f8;
  color: #425f7d;
}

#support-message-send {
  box-shadow: 0 5px 12px rgba(13, 110, 253, 0.2);
}

@media (min-width: 768px) {
  #requests-page .support-event-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 1px;
    overflow: hidden;
    border: 1px solid #d8e4ef;
    border-radius: 0.9rem;
    background: #d8e4ef;
  }

  #requests-page .event-details-primary-meta {
    grid-template-columns: minmax(0, 1fr);
  }

  #requests-page .support-event-details > * {
    align-items: center;
    min-width: 0;
    margin: 0;
    border: 0;
    background: #fff;
  }

  #requests-page .support-event-details > .event-details-section-warning {
    background: #fff1f2;
  }

  #requests-page .event-details-primary-meta,
  #requests-page .event-details-people-row {
    align-items: center;
    padding: 0.15rem;
  }

  #requests-page .event-details-people-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  #requests-page .event-details-primary-item,
  #requests-page .event-details-person-item {
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 0.35rem;
    padding: 0.15rem 0.35rem;
  }

  #requests-page .event-details-person-item + .event-details-person-item {
    padding-left: 0.35rem;
    border-left: 0;
  }

  #requests-page .event-details-section {
    grid-template-columns: 26px minmax(0, 1fr);
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.35rem;
  }

  #requests-page .event-details-icon,
  #requests-page .event-details-person-item .event-details-icon {
    width: 26px;
    height: 26px;
  }

  #requests-page .event-details-icon svg {
    width: 15px;
    height: 15px;
  }

  #requests-page .event-details-label {
    margin-bottom: 1px;
    font-size: 9px;
  }

  #requests-page .event-details-date {
    font-size: 14px;
    line-height: 1.15;
  }

  #requests-page .event-details-section h2 {
    margin: 0 0 2px;
    font-size: 13px;
    line-height: 1.15;
  }

  #requests-page .event-details-value {
    font-size: 12px;
    line-height: 1.3;
  }

  #requests-page .event-details-contact {
    margin-top: 2px;
    color: #6b7f95;
    font-size: 11px;
    font-weight: 400;
  }

  #requests-page .support-checklist {
    gap: 0.2rem;
  }

  #requests-page .support-checklist-item {
    gap: 0.35rem;
  }
}

.chat-message {
  display: flex;
}

.chat-message.mine {
  justify-content: flex-end;
}

.chat-message.their {
  justify-content: flex-start;
}

.chat-date-separator {
  display: flex;
  justify-content: center;
  margin: 0.2rem 0;
}

.chat-date-separator span {
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: #eef2f6;
  color: #637184;
  font-size: 0.78rem;
  font-weight: 600;
}

.chat-bubble {
  max-width: 78%;
  border: 1px solid #d9e4ef;
  border-radius: 1rem 1rem 1rem 0.35rem;
  padding: 0.7rem 0.85rem;
  background: #eef4fb;
  color: #24364a;
  box-shadow: 0 8px 18px rgba(20, 62, 105, 0.04);
}

.chat-message.mine .chat-bubble {
  border-bottom-right-radius: 0.35rem;
  border-bottom-left-radius: 1rem;
  background: #0f6fff;
  border-color: #0f6fff;
  color: #fff;
}

.chat-meta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: #688098;
  margin-bottom: 0.4rem;
}

.chat-message-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  margin-top: 0.25rem;
  color: #688098;
  font-size: 0.72rem;
}

.chat-message.mine .chat-message-footer {
  color: rgba(255, 255, 255, 0.78);
}

.chat-author {
  font-weight: 600;
  color: #1d3857;
}

.chat-text {
  white-space: pre-wrap;
  color: #1d3857;
}

.chat-message.mine .chat-text,
.chat-message.mine .chat-author {
  color: #fff;
}

.chat-message.mine .chat-meta,
.chat-message.mine .chat-read-status {
  color: rgba(255, 255, 255, 0.84);
}

.chat-file-row {
  display: flex;
}

.chat-file-row.mine {
  justify-content: flex-end;
}

.chat-file-row.their {
  justify-content: flex-start;
}

.support-attachment-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
  width: min(24rem, 78%);
  padding: 0.55rem 0.65rem;
  border: 1px solid #d9e4f2;
  border-radius: 0.65rem;
  background: #f8fbff;
  color: #16324f;
  text-decoration: none;
}

.support-attachment-link:hover {
  border-color: #0d6efd;
  color: #0d6efd;
}

.chat-file-time {
  color: #6c757d;
  font-size: 0.72rem;
  align-self: end;
}

.support-attachment-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 1.65rem;
  border-radius: 0.35rem;
  background: #e9f1ff;
  color: #0d6efd;
  font-size: 0.68rem;
  font-weight: 700;
}

.support-attachment-info {
  min-width: 0;
  display: grid;
  gap: 0.1rem;
}

.support-attachment-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.support-attachment-size {
  color: #6c757d;
  font-size: 0.78rem;
}

.support-attachment-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid #d9e4f2;
  border-radius: 0.65rem;
  background: #f8fbff;
  color: #16324f;
  font-size: 0.86rem;
}

.support-attachment-clear {
  width: 1.45rem;
  height: 1.45rem;
  border: 0;
  border-radius: 50%;
  background: #e9ecef;
  color: #495057;
  line-height: 1;
}

.tech-support-attachment-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  padding-left: 0.65rem;
  padding-right: 0.65rem;
}

.tech-support-attachment-icon {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tech-support-status-select {
  width: auto;
  min-width: 10rem;
}

.tech-support-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.45rem;
  padding: 0 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.tech-support-status-badge.status-new {
  background: #eaf2ff;
  color: #0d6efd;
}

.tech-support-status-badge.status-in_progress {
  background: #fff4d6;
  color: #946200;
}

.tech-support-status-badge.status-closed {
  background: #e9ecef;
  color: #495057;
}

.chat-reactions-row {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: -0.45rem;
  padding: 0 0.25rem;
}

.chat-reactions-row.mine {
  justify-content: flex-end;
}

.chat-reactions-row.their {
  justify-content: flex-start;
}

.chat-reaction-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border: 1px solid #d9e4ef;
  border-radius: 999px;
  background: #fff;
  color: #1d3857;
  padding: 0.2rem 0.55rem;
  font-size: 0.85rem;
  cursor: pointer;
}

.chat-reaction-btn.active {
  background: #eef6ff;
  border-color: #1f6feb;
}

.chat-reaction-count {
  font-size: 0.78rem;
  color: #58728d;
}

.chat-message.mine .chat-reaction-count {
  color: inherit;
}

.dashboard-shell.show-all-mode .calendar-column {
  order: 1;
}

.dashboard-shell.show-all-mode .events-column {
  order: 2;
}

.dashboard-shell.show-all-mode .occupancy-column {
  order: 3;
}

@media (max-width: 1199.98px) {
  .dashboard-shell.show-all-mode .calendar-column,
  .dashboard-shell.show-all-mode .events-column,
  .dashboard-shell.show-all-mode .occupancy-column {
    order: initial;
  }
}

@media (max-width: 767.98px) {
  #eventDetailsModal .modal-dialog {
    width: calc(100vw - 12px);
  }

  #eventDetailsModal .modal-content {
    max-height: calc(100dvh - 12px);
  }

  #details-title {
    font-size: 25px;
  }

  .event-details-sheet {
    padding-inline: 12px;
  }

  #eventDetailsModal .has-image .event-details-sheet {
    margin-top: -38px;
  }

  .event-details-primary-meta,
  .event-details-people-row {
    grid-template-columns: 1fr;
  }

  .event-details-primary-item + .event-details-primary-item,
  .event-details-person-item + .event-details-person-item {
    border-left: 0;
    border-top: 1px solid #d3e0ec;
    margin-top: 8px;
    padding-top: 12px;
    padding-left: 8px;
  }

  .event-card {
    grid-template-columns: 160px minmax(0, 1fr);
  }
}

@media (max-width: 580px) {
  .event-card {
    display: block;
  }

  .event-card-media {
    height: 170px;
    min-height: 0;
  }

  .event-card-main {
    padding: 14px;
  }

}



#occupancy-room-filter {
  width: 100%;
}

#planner-page #occupancy-room-filter {
  position: relative;
  z-index: 20;
  margin-bottom: 0.65rem;
}

#planner-page .planner-occupancy-card .occupancy-card-body {
  padding: 0.65rem 0.75rem 0.75rem;
}

#planner-page #occupancy-room-toggle {
  min-height: 2.35rem;
  padding: 0.4rem 0.7rem;
  border-radius: 0.75rem;
}

#planner-page #occupancy-room-filter .multi-select-menu {
  left: 0;
  right: 0;
  width: 100%;
  min-width: 100%;
}

#planner-page .planner-occupancy-list {
  position: relative;
  z-index: 1;
}

#planner-page #occupancy-room-menu {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: min(300px, calc(100vh - 18rem));
  overflow: hidden;
}

#planner-page #occupancy-room-menu .multi-select-options {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
}

.event-description-preview {
  color: #304a65;
  white-space: pre-wrap;
}

.event-description-toggle {
  border: 0;
  background: transparent;
  color: #1f6feb;
  padding: 0;
  font-size: 0.92rem;
}


#event-room-filter .multi-select-menu {
  padding: 0.75rem 0.65rem 0.6rem;
}

#event-room-filter .multi-select-control {
  position: relative;
  flex-wrap: wrap;
  min-height: 2.3rem;
  max-height: none;
  overflow: visible;
  margin: 0.65rem 0.35rem 0.55rem;
}

.searchable-combobox-toggle {
  position: relative;
  cursor: text;
}

.searchable-combobox-toggle .multi-select-placeholder {
  transition: opacity 0.15s ease;
}

.searchable-combobox-toggle .searchable-combobox-input {
  position: absolute;
  inset: 0 2.6rem 0 0.95rem;
  width: calc(100% - 3.55rem);
  min-width: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

.searchable-combobox-toggle[aria-expanded="true"] .multi-select-placeholder {
  opacity: 0;
}

.searchable-combobox-toggle[aria-expanded="true"] .searchable-combobox-input {
  opacity: 1;
  pointer-events: auto;
}

.searchable-combobox-toggle > .multi-select-clear {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
}

.searchable-combobox-toggle:has(> .multi-select-clear:not(.d-none)) .searchable-combobox-input {
  right: 4.5rem;
  width: calc(100% - 5.45rem);
}

#event-room-filter .multi-select-control:has(#room-select-tags:empty) {
  display: none;
}

#room-select-clear {
  position: absolute;
  right: 0.45rem;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.25rem 0.45rem;
  border-radius: 0.35rem;
  font-size: 0.75rem;
  white-space: nowrap;
}

#room-select-clear:hover,
#room-select-clear:focus-visible {
  background: #fdebea;
}

.room-select-filter-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 0.35rem 0.65rem;
  border-bottom: 1px solid #e5edf5;
}

.room-select-filter-button {
  min-height: 1.75rem;
  margin: 0;
  padding: 0.15rem 0.65rem;
  border: 1px solid #cfd9e5;
  border-radius: 999px;
  background: #fff;
  color: #405166;
  font-size: 0.75rem;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.room-select-filter-button:hover,
.room-select-filter-button:focus-visible {
  border-color: #9fc2f1;
  background: #f4f8ff;
  outline: none;
}

.room-select-filter-button.active {
  border-color: #1677ff;
  background: #1677ff;
  color: #fff;
}

.room-select-location-filter.form-select {
  flex: 0 1 auto;
  width: auto;
  max-width: 100%;
  field-sizing: content;
  height: 2rem;
  min-height: 2rem;
  padding-top: 0.3rem;
  padding-bottom: 0.3rem;
  border-color: #d6e0eb;
  border-radius: 0.6rem;
  color: #334155;
  font-size: 0.8rem;
}

#event-room-filter .multi-select-options {
  padding-top: 0.15rem;
}

#event-room-filter .multi-select-option {
  min-height: 2.7rem;
  padding: 0.45rem 0.5rem;
}

.room-select-option-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex: 1 1 auto;
  min-width: 0;
}

.room-select-option-name {
  min-width: 0;
  color: #294d78;
  font-size: 0.875rem;
}


#occupancy-list::-webkit-scrollbar {
  width: 10px;
}

#occupancy-list::-webkit-scrollbar-thumb {
  background: #bfd1e3;
  border-radius: 999px;
  border: 2px solid #f5f8fc;
}

#occupancy-list::-webkit-scrollbar-track {
  background: #f5f8fc;
  border-radius: 999px;
}


.planner-shell {
  position: relative;
  width: min(1800px, calc(100vw - 2rem));
  margin-left: 50%;
  margin-right: 0;
  transform: translateX(-50%);
}

.planner-calendar-card,
.planner-events-card,
.planner-occupancy-card,
.planner-filters-card,
.planner-announcements-card {
  border-radius: 1.5rem;
}

.planner-events-column,
.planner-occupancy-column {
  align-items: flex-start;
}

.planner-events-list {
  display: grid;
  gap: 1rem;
}

.planner-occupancy-list {
  min-height: 0;
  max-height: min(680px, calc(100vh - 10rem));
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding-right: 0.35rem;
}

#planner-page .planner-calendar-card #calendar-widget .ui-datepicker {
  max-width: none;
  margin: 0;
}

#planner-page .planner-calendar-card #calendar-widget .ui-state-default {
  padding: 0.72rem 0.24rem;
}


.planner-announcements-card {
  overflow: hidden;
}

.planner-announcements-card .card-body {
  padding: 1rem;
}

#dvizh_app_container {
  width: 100%;
}

#dvizh_app_container iframe {
  width: 100% !important;
  max-width: 100%;
  border: 0;
}

#planner-page .events-column .event-card {
  border-radius: 18px;
}

#planner-page .planner-events-card {
  background: transparent;
  box-shadow: none;
}

#planner-page .planner-events-card .card-body {
  padding: 0;
}

#planner-page .planner-filters-card {
  background: rgba(255, 255, 255, 0.94);
}

#planner-page .planner-filters-card .card-body {
  padding: 1rem 1rem 0.9rem;
}

#planner-page .planner-filters-card .form-label {
  margin-bottom: 0.3rem;
  font-size: 0.84rem;
}

#planner-page .planner-filters-card .form-control,
#planner-page .planner-filters-card .form-select {
  min-height: 2.45rem;
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
  font-size: 0.95rem;
}

#planner-page .planner-filters-card .form-check {
  margin-top: 0.15rem;
}

#planner-page .planner-filters-card .btn {
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

#planner-page .events-mode-toolbar {
  margin-bottom: -0.35rem;
}

#planner-page #events-filter-form {
  row-gap: 0.75rem;
}

@media (min-width: 1200px) {
  #planner-page .planner-calendar-column,
  #planner-page .planner-events-column,
  #planner-page .planner-occupancy-column {
    display: flex;
    align-items: flex-start;
  }

  #planner-page .planner-calendar-column {
    position: sticky;
    top: 1rem;
    align-self: flex-start;
  }

  #planner-page .planner-calendar-column > .card,
  #planner-page .planner-events-column > .card,
  #planner-page .planner-occupancy-column > .card {
    width: 100%;
  }

  #planner-page .planner-events-list {
    overflow: visible;
    max-height: none;
    padding-right: 0;
  }

  #planner-page .planner-occupancy-card {
    overflow: hidden;
  }

  #planner-page .planner-occupancy-card .card-body {
    min-height: 0;
    max-height: calc(100vh - 8rem);
    overflow: hidden;
  }

  #planner-page .planner-occupancy-list {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    padding: 0 0.35rem 0.45rem 0;
  }
}


.event-tag-picker {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0.95rem;
  border: 1px solid #d9e4ef;
  border-radius: 1rem;
  background: #fdfefe;
}

.event-tag-search-wrap {
  display: flex;
}

.event-tag-search {
  min-height: 2.8rem;
}

.event-tag-selected-label,
.event-tag-suggestions-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #26415c;
}

.event-tag-selected,
.event-tag-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.event-tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.8rem;
  border: 1px solid color-mix(in srgb, var(--tag-color, #dfe9e3) 35%, #dfe9e3);
  border-radius: 999px;
  background: color-mix(in srgb, var(--tag-color, #e7f0eb) 12%, #eef6f1);
  color: #244059;
  font-size: 0.92rem;
  line-height: 1;
}

.event-tag-chip.is-selected {
  background: color-mix(in srgb, var(--tag-color, #255d39) 88%, #143927);
  border-color: color-mix(in srgb, var(--tag-color, #255d39) 88%, #143927);
  color: #fff;
}

.event-tag-chip-remove,
.event-tag-chip-add {
  font-size: 1rem;
  line-height: 1;
  font-weight: 600;
}


.event-tag-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  min-height: 1.5rem;
}

.event-tag-selected:empty {
  display: none;
}

.event-tag-control-content {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.event-tag-control-content .event-tag-selected {
  min-height: 0;
  gap: 0.35rem;
}

#event-tag-selected .event-tag-chip {
  max-width: 100%;
  padding: 0.35rem 1.9rem 0.35rem 0.65rem;
  font-size: 0.85rem;
  line-height: 1.2;
}

#event-tag-selected .event-tag-chip > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

#event-tag-selected .event-tag-chip-remove {
  flex: 0 0 auto;
}

#event-tag-clear {
  align-self: center;
  padding: 0.25rem 0.45rem;
  font-size: 0.75rem;
  white-space: nowrap;
}

#event-tag-toggle .event-tag-search {
  display: none;
  flex: 0 0 auto;
  position: static;
  inset: auto;
  width: 100%;
  min-width: 0;
  height: 1.8rem;
  min-height: 1.8rem;
  opacity: 1;
  pointer-events: auto;
}

#event-tag-toggle[aria-expanded="true"] .event-tag-search {
  display: block;
}

#event-tag-toggle[aria-expanded="true"] .multi-select-placeholder {
  display: none;
}

.event-tag-filter {
  position: relative;
}

.event-tag-filter .multi-select-control {
  margin-bottom: 0.65rem;
}

.event-tag-filter .multi-select-input {
  width: 100%;
  min-width: 100%;
}

.event-tag-filter .multi-select-menu {
  padding: 0.75rem;
}

.event-list-tag-filter .multi-select-toggle {
  min-height: 46px;
}

.event-list-tag-filter .multi-select-menu {
  width: min(360px, 100%);
}

.event-list-tag-filter .event-tag-suggestions {
  max-height: 180px;
}

.event-tag-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  max-height: 220px;
  overflow-y: auto;
}

.event-tag-chip,
.event-tag-option {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.8rem;
  border: 1px solid color-mix(in srgb, var(--tag-color, #dfe9e3) 35%, #dfe9e3);
  border-radius: 999px;
  background: color-mix(in srgb, var(--tag-color, #e7f0eb) 12%, #eef6f1);
  color: #244059;
  font-size: 0.92rem;
  line-height: 1;
}

.event-tag-chip.is-selected {
  background: color-mix(in srgb, var(--tag-color, #255d39) 88%, #143927);
  border-color: color-mix(in srgb, var(--tag-color, #255d39) 88%, #143927);
  color: #fff;
}

.event-tag-chip-remove,
.event-tag-option-add {
  font-size: 1rem;
  line-height: 1;
  font-weight: 600;
}


.event-tags-row,
.detail-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.event-inline-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--tag-color, #2f6b3b) 14%, #eef6f1);
  border: 1px solid color-mix(in srgb, var(--tag-color, #2f6b3b) 30%, #dbe8de);
  color: #244059;
  font-size: 0.82rem;
  line-height: 1.2;
}


.support-nav-link,
.support-widget-toggle {
  position: relative;
}

.support-help-link {
  position: relative;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  font-weight: 700;
  line-height: 1;
}

.support-help-link:hover,
.support-help-link.active {
  background: rgba(255, 255, 255, 0.16);
}

.support-help-badge {
  position: absolute;
  top: -0.35rem;
  right: -0.45rem;
  min-width: 1.15rem;
  height: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: #dc3545;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 0 0 2px #1f4a7c;
}

.support-unread-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.25rem;
  padding: 0.1rem 0.45rem;
  margin-left: 0.35rem;
  border-radius: 999px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.support-unread-badge-request {
  min-width: 1.25rem;
  padding-inline: 0.35rem;
  background: #f15a29;
}

.support-unread-badge-message {
  gap: 0.2rem;
  padding-inline: 0.35rem;
  background: #dc3545;
}

.support-message-badge-icon {
  width: 0.78rem;
  height: 0.78rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.support-widget-toggle {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1040;
  width: 3.75rem;
  height: 3.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 999px;
  box-shadow: 0 18px 40px rgba(15, 43, 78, 0.22);
}

.support-widget-badge {
  position: absolute;
  top: -0.25rem;
  right: -0.4rem;
  min-height: 1.35rem;
  margin-left: 0;
}

.support-widget-badge-secondary {
  top: -0.25rem;
  right: -0.4rem;
}

.support-widget-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.support-widget-panel {
  position: fixed;
  right: 1.25rem;
  bottom: 5.75rem;
  z-index: 1039;
  width: min(26rem, calc(100vw - 1.5rem));
  height: min(42rem, calc(100vh - 7.5rem));
  border: 1px solid #d8e3ef;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 22px 48px rgba(15, 43, 78, 0.2);
  overflow: hidden;
}

.support-widget-panel.is-open {
  display: flex !important;
  flex-direction: column;
}

.support-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border-bottom: 1px solid #e4edf6;
  background: linear-gradient(180deg, #f8fbff 0%, #f3f8fd 100%);
}

.support-widget-title {
  color: #16324f;
  font-weight: 700;
}

.support-widget-subtitle {
  color: #62748a;
  font-size: 0.82rem;
}

.support-widget-shell {
  flex: 1 1 auto;
  min-height: 0;
}

.support-widget-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}

.support-widget-body {
  background: transparent;
}

.requests-widget-layout {
  min-height: calc(100vh - 2rem);
}

.support-request-section {
  display: grid;
  gap: 0.9rem;
}

.support-request-section + .support-request-section {
  margin-top: 1.35rem;
}

.support-request-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #62748a;
}

.support-request-section-list {
  display: grid;
  gap: 1rem;
}

.support-request-tabs {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.2rem;
  border: 1px solid #d8e3ef;
  border-radius: 0.5rem;
  background: #f7fbff;
}

.support-request-tab {
  border: 0;
  border-radius: 0.4rem;
  background: transparent;
  color: #425b76;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.45rem 0.75rem;
}

.support-request-tab.active {
  background: #1f4a7c;
  color: #fff;
}

.support-page-gap {
  color: #6b7c90;
  padding: 0 0.15rem;
}

.support-request-card {
  width: 100%;
  border: 1px solid #d8e3ef;
  border-radius: 1rem;
  padding: 1rem;
  background: #fff;
  text-align: left;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.support-request-card:hover {
  transform: translateY(-1px);
  border-color: #9fc2e3;
  box-shadow: 0 12px 24px rgba(20, 62, 105, 0.08);
}

.support-request-card.active {
  border-color: #1f4a7c;
  box-shadow: 0 10px 22px rgba(20, 62, 105, 0.08);
}

.support-request-card.support-request-card-room-warning {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

#users-page > [class*="col-"] {
  min-width: 0;
}

.users-filter-bar {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) minmax(10rem, 0.55fr) auto;
  gap: 0.5rem;
}

.users-bulk-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.user-list-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.65rem;
  min-width: 0;
}

.user-list-item > .form-check-input {
  margin-top: 1.05rem;
}

#users-list .support-request-card {
  min-width: 0;
  overflow: hidden;
}

.user-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
}

.user-card-heading .badge {
  flex: 0 0 auto;
}

.user-card-value,
#users-form-title {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#user-form-feedback:not(.d-none) {
  position: sticky;
  top: 0;
  z-index: 5;
  box-shadow: 0 0.4rem 1rem rgba(15, 43, 78, 0.12);
}

@media (min-width: 1200px) {
  .users-editor-column {
    position: sticky;
    top: 1rem;
    align-self: flex-start;
  }

  .users-editor-column .card-body {
    max-height: calc(100dvh - 2rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
}

@media (max-width: 767.98px) {
  .users-filter-bar {
    grid-template-columns: minmax(0, 1fr);
  }
}

.support-request-meta-row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 0.4rem;
}

.support-item-unread {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: #dc3545;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
}

.support-item-new-dot {
  width: 0.75rem;
  height: 0.75rem;
  flex: 0 0 0.75rem;
  border-radius: 999px;
  background: #f15a29;
  box-shadow: 0 0 0 3px rgba(241, 90, 41, 0.16);
  margin-top: 0.35rem;
}

@media (max-width: 767.98px) {
  .support-widget-toggle {
    right: 0.85rem;
    bottom: 0.85rem;
  }

  .support-widget-panel {
    right: 0.75rem;
    bottom: 5.2rem;
    width: calc(100vw - 1.5rem);
    height: min(36rem, calc(100vh - 6.5rem));
  }
}


.event-floating-feedback {
  position: fixed;
  top: 1rem;
  left: 1rem;
  transform: translateY(-0.75rem);
  z-index: 2001;
  width: min(32rem, calc(100vw - 2rem));
  box-shadow: 0 16px 32px rgba(15, 43, 78, 0.18);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: none;
}

.event-floating-feedback.is-visible {
  opacity: 1;
  transform: translateY(0);
}


.support-request-card-compact {
  padding: 0.85rem 0.9rem;
}

.support-request-card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.support-details-header-compact {
  margin-bottom: 0.75rem !important;
}

.chat-read-status {
  margin-top: 0.45rem;
  font-size: 0.72rem;
  color: #6b7c90;
}

.chat-read-status.read {
  color: #2d7c4d;
}

.chat-read-status.unread {
  color: #8a6670;
}

.support-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.support-checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0;
}

.support-checklist-item .form-check-input {
  margin-top: 0.15rem;
  opacity: 1;
}

.support-checklist-item span {
  color: #243b53;
}

.page-floating-feedback {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translate(-50%, -0.75rem);
  z-index: 2000;
  width: min(28rem, calc(100vw - 2rem));
  box-shadow: 0 18px 36px rgba(15, 43, 78, 0.18);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: none;
}

.page-floating-feedback.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.debug-log-table tbody tr {
  cursor: pointer;
}

.debug-log-table tbody tr:hover,
.debug-log-table tbody tr:focus {
  background: #f7fbff;
}

.debug-log-json {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.92rem;
  color: #1d3857;
  background: #f8fbff;
  border: 1px solid #d8e3ef;
  border-radius: 1rem;
  padding: 1rem;
}

.event-export-fields {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.event-export-field-group {
  border: 1px solid #d8e3ef;
  border-radius: 0.5rem;
  padding: 0.85rem;
  background: #fbfdff;
}

.event-export-field-group-title {
  font-weight: 600;
  color: #1d3857;
  margin-bottom: 0.65rem;
}

.event-export-field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 0.45rem 0.9rem;
}

.event-export-field {
  margin: 0;
  min-width: 0;
}
