.home-dashboard-view {
  position: relative;
  min-height: 100%;
  padding: 12px 4px 90px;
}

.home-dashboard-grid {
  --home-dashboard-row-height: 72px;
  position: relative;
  isolation: isolate;
  min-width: 0;
  min-height: 810px;
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  grid-template-rows: repeat(10, var(--home-dashboard-row-height));
  gap: 10px;
}

.home-dashboard-cell-grid {
  z-index: 0;
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  grid-template-rows: repeat(10, minmax(0, 1fr));
  gap: 10px;
  pointer-events: none;
}

.home-dashboard-cell-grid span {
  border: 1px dashed #c9d3cf;
  border-radius: 4px;
  background: #f5f8f7;
}

.home-dashboard-widget,
.home-dashboard-drop-preview {
  grid-column: var(--home-widget-x) / span var(--home-widget-w);
  grid-row: var(--home-widget-y) / span var(--home-widget-h);
  min-width: 0;
  min-height: 0;
}

.home-dashboard-widget {
  position: relative;
  z-index: 2;
}

.home-dashboard-widget.is-editing {
  outline: 2px solid rgba(13, 133, 120, 0.25);
  outline-offset: 2px;
}

.home-dashboard-widget.is-selected {
  outline-color: #0c887a;
}

.home-dashboard-widget.is-dragging {
  opacity: 0.48;
}

.home-dashboard-widget-content {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  scrollbar-width: thin;
}

.home-dashboard-widget-content.is-clickable {
  cursor: pointer;
  transition: filter 140ms ease, transform 140ms ease;
}

.home-dashboard-widget-content.is-clickable:hover {
  filter: brightness(0.985);
}

.home-dashboard-widget-content.is-clickable:focus-visible {
  outline: 3px solid rgba(11, 136, 122, 0.42);
  outline-offset: 2px;
}

.home-dashboard-widget-tools {
  position: absolute;
  z-index: 12;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px;
  border: 1px solid #a9bbb5;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 12px rgba(25, 45, 38, 0.14);
}

.home-dashboard-widget-tools button {
  min-height: 31px;
  border: 0;
  border-radius: 4px;
  padding: 0 9px;
  background: #edf5f2;
  color: #23453c;
  font-size: 12px;
  font-weight: 850;
}

.home-dashboard-widget-tools .home-dashboard-drag-handle {
  width: 34px;
  padding: 0;
  background: #153029;
  color: #fff;
  cursor: grab;
  font-size: 17px;
  letter-spacing: 0;
}

.home-dashboard-widget-tools .home-dashboard-drag-handle:active {
  cursor: grabbing;
}

.home-dashboard-drop-preview {
  z-index: 8;
  display: none;
  border: 2px solid #0b8a7b;
  border-radius: 6px;
  background: rgba(12, 138, 123, 0.13);
  pointer-events: none;
}

.home-dashboard-drop-preview.is-visible {
  display: block;
}

.home-dashboard-drop-preview.is-blocked {
  border-color: #c83b35;
  background: rgba(200, 59, 53, 0.12);
}

.home-dashboard-manager-button {
  position: fixed;
  z-index: 92;
  right: 22px;
  bottom: 72px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #63877d;
  border-radius: 6px;
  padding: 0 15px;
  background: #18342d;
  color: #fff;
  box-shadow: 0 8px 22px rgba(29, 53, 45, 0.24);
  font-size: 13px;
  font-weight: 850;
}

.home-dashboard-manager-button.is-active {
  background: #0b887a;
}

.home-dashboard-manager-button span {
  font-size: 17px;
}

.home-dashboard-manager {
  position: fixed;
  z-index: 91;
  right: 22px;
  bottom: 124px;
  width: min(390px, calc(100vw - 34px));
  max-height: calc(100vh - 160px);
  overflow: auto;
  border: 1px solid #b9c8c3;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(28, 48, 41, 0.24);
  color: #17231f;
}

.home-dashboard-manager > header,
.home-dashboard-manager-mode,
.home-dashboard-settings-title,
.home-dashboard-catalog > div,
.home-dashboard-manager > footer {
  display: flex;
  align-items: center;
}

.home-dashboard-manager > header {
  justify-content: space-between;
  gap: 14px;
  padding: 17px 18px;
  border-bottom: 1px solid #dce4e1;
}

.home-dashboard-manager > header span,
.home-basic-widget-header > div > span {
  color: #0a756a;
  font-size: 11px;
  font-weight: 900;
}

.home-dashboard-manager h2,
.home-dashboard-manager h3,
.home-basic-widget-header h2 {
  margin: 2px 0 0;
  letter-spacing: 0;
}

.home-dashboard-manager h2 {
  font-size: 19px;
}

.home-dashboard-manager > header > button {
  width: 38px;
  height: 38px;
  border: 1px solid #c5d0cc;
  border-radius: 5px;
  padding: 0;
  background: #fff;
  color: #344a43;
  font-size: 23px;
}

.home-dashboard-manager-mode {
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
  background: #f4f7f6;
  border-bottom: 1px solid #dce4e1;
}

.home-dashboard-manager-mode strong,
.home-dashboard-manager-mode span {
  display: block;
}

.home-dashboard-manager-mode span {
  margin-top: 3px;
  color: #6d7974;
  font-size: 11px;
}

.home-dashboard-manager-mode > button {
  min-height: 36px;
  border: 1px solid #9fb4ad;
  border-radius: 5px;
  padding: 0 12px;
  background: #fff;
  color: #375149;
  font-weight: 850;
  white-space: nowrap;
}

.home-dashboard-manager-mode > button.is-active {
  border-color: #0b887a;
  background: #0b887a;
  color: #fff;
}

.home-dashboard-manager-section {
  padding: 15px 18px;
  border-bottom: 1px solid #dce4e1;
}

.home-dashboard-manager-section h3 {
  margin: 0 0 10px;
  font-size: 14px;
}

.home-dashboard-menu-shortcut-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.home-dashboard-menu-shortcut-picker select {
  min-width: 0;
  min-height: 40px;
  border: 1px solid #bac8c3;
  border-radius: 5px;
  padding: 0 9px;
  background: #fff;
  color: #1e302a;
  font-weight: 750;
}

.home-dashboard-menu-shortcut-picker button {
  min-height: 40px;
  border: 1px solid #0b887a;
  border-radius: 5px;
  padding: 0 15px;
  background: #0b887a;
  color: #fff;
  font-weight: 850;
}

.home-dashboard-menu-shortcut-picker button:disabled {
  border-color: #c4ceca;
  background: #edf1ef;
  color: #909b97;
}

.home-dashboard-catalog {
  border-top: 1px solid #dce4e1;
}

.home-dashboard-catalog > div {
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  border-bottom: 1px solid #e3e9e7;
  padding: 8px 2px;
}

.home-dashboard-catalog > div.is-selected {
  box-shadow: inset 3px 0 #0b887a;
  padding-left: 10px;
  background: #f1f8f6;
}

.home-dashboard-catalog span,
.home-dashboard-catalog strong {
  min-width: 0;
  display: block;
}

.home-dashboard-catalog button,
.home-dashboard-settings-title button,
.home-dashboard-manager > footer button {
  min-height: 34px;
  border: 1px solid #b4c5bf;
  border-radius: 5px;
  padding: 0 11px;
  background: #fff;
  color: #345149;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.home-dashboard-catalog button:disabled {
  color: #8b9692;
  background: #f0f2f1;
}

.home-dashboard-settings-title {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
}

.home-dashboard-settings-title h3 {
  margin: 0;
}

.home-dashboard-settings-title button {
  border-color: #e5b9b5;
  color: #a93630;
}

.home-dashboard-selected-settings > label,
.home-dashboard-position-fields label {
  display: grid;
  gap: 5px;
  margin-top: 9px;
  color: #52635c;
  font-size: 12px;
  font-weight: 850;
}

.home-dashboard-selected-settings select {
  width: 100%;
  min-height: 38px;
  border: 1px solid #bac8c3;
  border-radius: 5px;
  padding: 0 9px;
  background: #fff;
  color: #1e302a;
  font-weight: 750;
}

.home-dashboard-position-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.home-dashboard-manager > footer {
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
  background: #f7f9f8;
}

.home-dashboard-manager > footer span {
  color: #74817c;
  font-size: 10px;
  text-align: right;
}
