@import url('variables/momentum-variables.css');

* {
  font-family: var(--Font-family-font-family-body);
  font-size: var(--Font-size-text-md);
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden !important;
}

.page {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

#blazor-error-ui {
  background: lightyellow;
  bottom: 0;
  box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
  display: none;
  left: 0;
  padding: 0.6rem 1.25rem 0.7rem 1.25rem;
  position: fixed;
  width: 100%;
  z-index: 1000;
}

  #blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
  }

.menu-dropdown-wrapper {
  position: relative;
  display: inline-block;
  margin-left: 16px;
}

.menu-icon {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 4px 8px;
  color: #444;
  transition: background 0.2s;
}

  .menu-icon:hover {
    background-color: #f0f0f0;
    border-radius: 4px;
  }

.menu-dropdown {
  position: fixed;
  right: 20px;
  top: 60px;
  background-color: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  z-index: 9999;
  min-width: 180px;
}

.menu-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 16px;
  background: none;
  border: none;
  font-size: 14px;
  color: #333;
  cursor: pointer;
}

  .menu-item:hover {
    background-color: #f5f5f5;
  }

  .menu-item.active {
    font-weight: bold;
    background-color: #e6f0ff;
  }

.view-toggle-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-size: 15px;
  font-weight: 500;
  color: #444;
  background-color: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
}

  .view-toggle-button:hover {
    background-color: #f0f0f0;
  }

  .view-toggle-button i {
    font-size: 18px;
  }

.layout-controls {
  gap: 12px;
  align-items: center;
  display: flex;
  flex-wrap: wrap;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5px;
  width: 100%;
}

.panel-buttons .e-btn {
  margin-left: 5px;
}

.panel-close-btn {
  background: transparent;
  border: none;
  color: #888;
  font-size: 16px;
  cursor: pointer;
  padding: 0 4px;
}

  .panel-close-btn:hover {
    color: #d00;
  }

.dashboardlayout-container {
  flex: 1;
  margin-top: 12px;
  margin-bottom: 12px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}

  .dashboardlayout-container.loading {
    visibility: hidden;
  }

@media(max-width:959px) {
  .dashboardlayout-container {
    margin-left: -12px;
    margin-right: -12px;
  }

  .widget-content-container {
    max-height: 100vh;
  }
}

.top-bar-container-small {
  display: flex;
  justify-content: center;
  align-items: center;
  border-top: 1px solid var(--Colors-Border-border-primary) !important;
  border-bottom: 1px solid var(--Colors-Border-border-primary) !important;
  margin-left: -12px;
  margin-right: -12px;
  background: var(--Colors-Background-bg-primary);
  padding: 8px;
}

.bottom-bar-container {
  overflow: hidden;
  background: var(--Colors-Background-bg-primary);
  padding: 0 12px;
  height: 64px !important;
  margin-left: -12px;
  margin-right: -12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bottom-bar-toolbar {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  height: var(--bottom-bar-height) !important;
}

.shell-toolbar {
  padding-left: 12px;
  padding-right: 12px;
}

.widget-tabs-container {
  overflow: auto;
}

  .widget-tabs-container .mud-tabs-panels {
    overflow: auto;
  }

.modules-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modules-list-item {
  border-radius: 6px !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
}

  .modules-list-item.mud-primary-text {
    color: var(--Colors-Text-text-secondary_hover) !important;
  }

.form-label-value-group .mud-input-helper-text.mud-input-error .me-auto {
  font-size: var(--Font-size-text-xs) !important;
}

.form-label-value-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.widget-header-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  width: 100%;
}

.module-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.scheduler-item-container {
  border: none !important;
  border-radius: var(--radius-xs) !important;
  height: 32px !important;
  text-align: center;
  background: var(--Colors-Background-bg-brand-solid) !important;
}

.scheduler-item-label-container {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.scheduler-item-label {
  font-size: 14px;
  color: white;
  white-space: nowrap;
  text-overflow: clip;
  overflow: hidden;
  display: block;
}

.dialog-title, .widget-header-title {
  font-weight: var(--Font-weight-bold) !important;
  font-size: var(--Font-size-text-md) !important;
  max-width: 90% !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  overflow: hidden !important;
}

.module-edit-button .mud-icon-root {
  width: 21px !important;
  height: 21px !important;
}
