/* Edge/IE inject their own native password reveal/clear icons via these non-standard
   pseudo-elements, which duplicate or collide with our own custom eye-toggle IconButton.
   Chrome/Firefox/Safari don't add one by default, so this only has an effect on Edge/IE. */
input[type='password']::-ms-reveal,
input[type='password']::-ms-clear {
  display: none;
}

input::placeholder {
  color: var(--santas-gray) !important;
  font-size: 14px !important;
  opacity: 1 !important;
}

.MuiOutlinedInput-input[type="date"] {
  font-size: 14px !important;
  color: var(--santas-gray) !important;
  opacity: 1 !important;
}

.audit-filter-select .MuiOutlinedInput-input {
  font-size: 14px !important;
  color: var(--santas-gray) !important;
  opacity: 1 !important;
}

.audit-filter-select.Mui-focused .MuiOutlinedInput-notchedOutline {
  border-color: var(--color-primary-deep) !important;
  border-width: 1px !important;
  box-shadow: 0 0 4px 3px rgba(10, 128, 136, 0.15) !important;
}

.MuiOutlinedInput-root:hover .MuiOutlinedInput-notchedOutline {
  border-color: var(--color-primary-deep) !important;
  border-width: 1px !important;
  box-shadow: 0 0 4px 3px rgba(10, 128, 136, 0.15) !important;
}

.MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline {
  border-color: var(--color-primary-deep) !important;
  border-width: 1px !important;
  box-shadow: 0 0 4px 3px rgba(10, 128, 136, 0.15) !important;
}

.dashboard-shell {
  min-height: 100vh;
  background: var(--snow-white);
}

.page-loader-overlay {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  color: #ffffff;
}

/* ---- buttons ---- */

.normal-tealcolor-btn {
  background: var(--color-primary-deep) !important;
  color: var(--color-white) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  min-height: 40px;
}

.cancel-btn {
  background: var(--color-chrome-bg) url('/assets/images/cancel-icon.svg') no-repeat 15px !important;
  height: 40px;
  border-radius: 10px !important;
  padding: 0 15px 0 38px !important;
  color: var(--color-white) !important;
  text-transform: capitalize !important;
  margin: 0 !important;
  font-weight: 400 !important;
}

.cancel-btn:hover {
  background: var(--black-pearl) url('/assets/images/cancel-icon.svg') no-repeat 15px !important;
}

.save-changes-btn {
  background: var(--color-primary-deep) url('/assets/images/save-icon.svg') no-repeat 15px !important;
  height: 40px;
  border-radius: 10px !important;
  padding: 0 15px 0 38px !important;
  color: var(--color-white) !important;
  text-transform: capitalize !important;
  margin: 0 !important;
  font-weight: 400 !important;
}

.save-changes-btn:hover {
  background: var(--deep-blue-green) url('/assets/images/save-icon.svg') no-repeat 15px !important;
}

.reset-btn {
  background: var(--aureoline-yellow) url('/assets/images/reset-icon.svg') no-repeat 15px !important;
  height: 40px;
  border-radius: 10px !important;
  padding: 0 15px 0 38px !important;
  color: var(--color-white) !important;
  text-transform: capitalize !important;
  margin: 0 !important;
  font-weight: 400 !important;
}

.reset-btn:hover {
  background: var(--balance-yellow) url('/assets/images/reset-icon.svg') no-repeat 15px !important;
}

.search-btn {
  background: var(--color-chrome-bg) url('/assets/images/search-white-icon.svg') no-repeat 15px !important;
  background-size: 16px !important;
  height: 40px;
  border-radius: 10px !important;
  padding: 0 15px 0 38px !important;
  color: var(--color-white) !important;
  text-transform: capitalize !important;
  margin: 0 !important;
  font-weight: 400 !important;
}

.export-btn {
  background: var(--color-primary-deep) url('/assets/images/export-icon.svg') no-repeat 15px !important;
  height: 40px;
  border-radius: 10px !important;
  padding: 0 15px 0 38px !important;
  color: var(--color-white) !important;
  text-transform: capitalize !important;
  margin: 0 !important;
}

/* Unlike cancel-btn/save-changes-btn (a fixed background-image icon), this one's icon is passed
   as a real MUI startIcon per-usage - there's no shared "danger" icon asset, and callers vary
   (e.g. DeleteOutline for a dismiss). Symmetric padding here works with startIcon's own spacing
   without needing the background-image family's manual left-padding reservation. */
.danger-btn {
  background: var(--color-danger) !important;
  height: 40px;
  border-radius: 10px !important;
  padding: 0 20px !important;
  color: var(--color-white) !important;
  text-transform: capitalize !important;
  margin: 0 !important;
  font-weight: 400 !important;
}

.danger-btn:hover {
  background: var(--color-danger-hover) !important;
}

/* ---- buttons ---- */

/* Leaves the fixed 74px dashboard header (name/role/company) fully visible instead of dimming it
   along with the rest of the page — matches the header-height offset already used for
   .dashboard-body and the mobile sidebar below. */
.page-loader-overlay--below-header {
  inset: 74px 0 0;
}

.dashboard-body {
  display: flex;
  align-items: stretch;
  min-height: calc(100vh - 74px);
  padding: 72px 0 0 0;
}

.dashboard-content {
  flex: 1;
  min-width: 0;
  background: var(--snow-white);
}

.dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  height: 4.5rem;
  padding: 0 1.25rem;
  background: var(--color-card-bg);
  border-bottom: 0.063rem solid var(--color-border);
  box-shadow: 0 2px 10px rgba(17, 52, 71, 0.06);
  position: fixed;
  width: 100%;
  z-index: 1;
}

.dashboard-brand-group {
  display: flex;
  align-items: center;
  gap: 23px;
}

.dashboard-sidebar-toggle.MuiIconButton-root {
  width: 16.875px;
  height: 15px;
  min-width: 16.875px;
  padding: 0;
  border-radius: 5px;
  background: #ffffff;
}

.dashboard-sidebar-toggle.MuiIconButton-root:hover {
  background: #ffffff;
}

.dashboard-sidebar-toggle-icon {
  display: block;
  width: 16.875px;
  height: 15px;
}

.dashboard-brand img {
  display: block;
  max-width: 130px;
  width: 100%;
}

.dashboard-divider {
  width: 1px;
  height: 39px;
  border: 1px solid var(--color-border);
  opacity: 1;
}

.dashboard-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dashboard-notification-button {
   background: none !important;
}

.dashboard-notification-icon {
  display: block;
  width: 18px;
  height: 24px;
}

.dashboard-avatar.MuiAvatar-root {
  width: 32px;
  height: 32px;
  background: linear-gradient(360deg,
      var(--color-primary-deep),
      var(--traditional-turquoise),
      var(--color-accent));
  color: #ffffff;
  font-family: 'Inter', 'Segoe UI', 'Trebuchet MS', Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 600;
}

.dashboard-user {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  border-radius: 8px;
  margin: 0 20px 0 0;
}

.dashboard-user:hover .dashboard-user-name.MuiTypography-root {
  color: var(--color-primary);
}

.dashboard-user-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.dashboard-user-name.MuiTypography-root {
  font-family: 'Inter', 'Segoe UI', 'Trebuchet MS', Helvetica, sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 100%;
  color: var(--color-text-user);
  margin-bottom: 0.25rem;
}

.dashboard-user-role.MuiTypography-root {
  font-family: 'Inter', 'Segoe UI', 'Trebuchet MS', Helvetica, sans-serif;
  font-weight: 400;
  font-size: 11px;
  line-height: 15px;
  color: var(--color-text-user);
}

.dashboard-user-company.MuiTypography-root {
  font-family: 'Inter', 'Segoe UI', 'Trebuchet MS', Helvetica, sans-serif;
  font-weight: 400;
  font-size: 11px;
  line-height: 15px;
  color: var(--color-text-user);
  opacity: 1;
  transition: opacity 0.15s ease;
}

/* The company name loads a moment after name/role (a separate profile fetch, since it isn't in
   the JWT) — reserve its line's height from the first render via this placeholder space so
   nothing else in the header shifts, and fade the text in once it arrives instead of having it
   pop into existence. */
.dashboard-user-company--pending.MuiTypography-root {
  opacity: 0;
}

.dashboard-logout-button.MuiButton-root {
  width: 100px;
  height: 38px;
  border-radius: 7px;
  background: var(--color-chrome-bg);
  border: 1.5px solid #ffffff;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0 12px;
  text-transform: none;
}

.dashboard-logout-button.MuiButton-root img {
  max-width: 13px;
}

.dashboard-logout-button.MuiButton-root:hover {
  background: var(--color-primary-deep);
  font-weight: 600 !important;
}

.dashboard-logout-button.MuiButton-root:hover img {
  filter: brightness(0) invert(1);
  transition: 0.25s ease;
}

.dashboard-logout-button.MuiButton-root.Mui-disabled {
  opacity: 0.7;
  color: #ffffff;
}

.sidebar {
  width: 260px !important;
  flex-shrink: 0;
  background: var(--color-chrome-bg);
  padding: 30px 15px 30px !important;
  overflow: hidden;
  transition: transform 0.2s ease, width 0.2s ease, padding 0.2s ease;
  min-height: inherit;
}

/* Collapsing the sidebar must also collapse the space it reserves in the
   flex row, or .dashboard-content (flex: 1) never reclaims that width and
   every page is left with a dead gap on the left when the sidebar is closed. */
.sidebar--closed {
  width: 0 !important;
  padding: 0 !important;
  transform: translateX(-100%);
}

.sidebar-section {
  margin-bottom: 24px;
}

.sidebar-section-label {
  display: block;
  height: 9px;
  width: auto;
  margin: 0 0 24px 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #35A1A7;
}

.sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-list-item {
  display: block;
  margin: 10px 0;
}

.sidebar-list-item-hidden {
  display: none !important;
}

.sidebar-section-hidden {
  display: none !important;
}

.sidebar-icon-box {
  max-width: 20px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 39px;
  padding: 0 15px;
  color: #ffffff;
  text-decoration: none;
  font-family: 'Inter', 'Segoe UI', 'Trebuchet MS', Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 300;
  line-height: 45px;
  letter-spacing: 0%;
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
  transition: 0.25s ease;
}

.sidebar-item--disabled {
  cursor: default;
  opacity: 0.55;
}

.sidebar-item:hover {
  background: var(--color-primary);
  color: #ffffff;
  font-weight: 300;
  border-radius: 7px;
  border-left: 2px solid #7FBC03;
}

.sidebar-item:hover img {
  filter: brightness(0) invert(1);
}

.sidebar-item--active {
  background: var(--color-primary);
  color: #ffffff;
  font-weight: 600 !important;
  border-radius: 7px;
  border-left: 2px solid #7FBC03;
}

.sidebar-item-icon {
  display: block;
  flex-shrink: 0;
}

.sidebar-item-icon--active {
  filter: brightness(0) invert(1);
}

.sidebar-item-icon[data-icon='home'] {
  width: auto;
  height: 16px;
}

.sidebar-item-icon[data-icon='search'] {
  width: auto;
  height: 16px;
}

.sidebar-item-icon[data-icon='user-queues'] {
  width: auto;
  height: 16px;
}

.sidebar-item-icon[data-icon='overview'] {
  width: 12px;
  height: 16px;
}

.sidebar-item-icon[data-icon='import-data'] {
  width: 18.77px;
  height: 16px;
}

.sidebar-item-icon[data-icon='settings'] {
  width: 16px;
  height: 16px;
}

.sidebar-backdrop {
  display: none;
}

@media (max-width: 768px) {
  .dashboard-topbar {
    height: auto;
    min-height: 74px;
    padding: 0.75rem 1.25rem;
  }

  .dashboard-actions {
    gap: 10px;
  }

  .sidebar {
    position: fixed;
    top: 74px;
    bottom: 0;
    left: 0;
    z-index: 20;
    transform: translateX(0);
    transition: transform 0.2s ease;
  }

  .sidebar--closed {
    width: 220px;
    padding: 24px 0 12px;
    transform: translateX(-100%);
  }

  .dashboard-body {
    min-height: calc(100vh - 118px);
  }

  .sidebar-backdrop {
    display: block;
    position: fixed;
    top: 74px;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 15;
    background: rgba(15, 23, 42, 0.4);
  }
}

@media (max-width: 480px) {
  .dashboard-user-info {
    display: none;
  }
}

.profile-page {
  display: grid;
  grid-template-columns: 302px 1fr;
  align-items: start;
  gap: 25px;
  padding: 30px;
}

.profile-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 2px 10px rgba(17, 52, 71, 0.05);
}

.profile-card.personal-information-card {
  border: 1px solid #E7EBF2;
  border-radius: 15px;
  box-shadow: 0px 6px 20px 0px #1622330F;
  opacity: 1;
}

.profile-column-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-column-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.profile-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
}

.profile-card-header .MuiSvgIcon-root {
  color: var(--color-primary);
  font-size: 20px;
}

.profile-card-header-icon {
  display: block;
  max-width: 15px;
  width: 100%;
}

.profile-card-title.MuiTypography-root {
  font-family: 'Inter', 'Segoe UI', 'Trebuchet MS', Helvetica, sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--color-text-user);
}

.personal-information-card .profile-card-title.MuiTypography-root {
  font-family: 'Inter', 'Segoe UI', 'Trebuchet MS', Helvetica, sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 15.75px;
  letter-spacing: 0;
  color: #0f172a;
}

/* ---- Profile summary card ---- */

.profile-card.profile-summary-card {
  background: #FFFFFF;
  border-radius: 15px;
  box-shadow: 0px 6px 20px 0px #1622330F;
  opacity: 1;
}

.profile-summary-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--color-border);
}

.profile-avatar-wrap {
  position: relative;
  margin-bottom: 12px;
}

.profile-avatar {
  display: block;
  width: 100px;
  height: 100px;
  border: 3px solid #FFFFFF;
  border-radius: 50%;
  opacity: 1;
  object-fit: cover;
}

.profile-avatar-file-input {
  display: none;
}

.profile-avatar-edit-badge.MuiIconButton-root {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #FFFFFF;
  border-radius: 50%;
  opacity: 1;
}

.profile-avatar-edit-icon {
  display: block;
  width: 100%;
  height: 100%;
}

.profile-avatar-delete-badge.MuiIconButton-root {
  position: absolute;
  left: -2px;
  bottom: -2px;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #FFFFFF;
  border-radius: 50%;
  opacity: 1;
  background: #d92d20;
  color: #FFFFFF;
}

.profile-avatar-delete-badge.MuiIconButton-root:hover {
  background: #b42318;
}

.profile-avatar-delete-badge .MuiSvgIcon-root {
  font-size: 16px;
}

.profile-name.MuiTypography-root {
  font-family: 'Inter', 'Segoe UI', 'Trebuchet MS', Helvetica, sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--color-text-user);
  margin-bottom: 8px;
  position: relative;
  padding: 0 0 0 17px;
}

.profile-name.MuiTypography-root:before {
  content: '';
  position: absolute;
  top: 9px;
  left: 0;
  bottom: 0;
  width: 9px;
  height: 9px;
  background: #23C16B;
  border-radius: 5px;
}

.profile-role-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(0, 122, 129, 0.12);
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.profile-info-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.profile-info-item {
  display: flex;
  align-items: start;
  gap: 10px;
}

.profile-info-item .MuiSvgIcon-root {
  font-size: 17px;
  color: var(--color-muted);
  flex-shrink: 0;
}

.profile-info-text.MuiTypography-root {
  font-size: 14px;
  word-break: break-word;
}

.profile-info-label {
  font-weight: 600;
  color: var(--color-text);
}

.profile-info-value {
  color: var(--color-text-user);
}

.profile-info-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
}

.profile-info-item .profile-info-status-icon.MuiSvgIcon-root {
  font-size: 16px;
}

.profile-info-item .profile-info-status-icon--on.MuiSvgIcon-root {
  color: #23c16b;
}

.profile-info-item .profile-info-status-icon--off.MuiSvgIcon-root {
  color: var(--color-muted);
}

/* ---- Theme highlight card ---- */

.profile-card.theme-highlight-card {
  height: auto;
  opacity: 1;
  padding: 0;
}

.profile-card.theme-highlight-card .profile-card-header {
  padding: 10px 22px 15px 22px;
  border-bottom: 1px solid var(--snow-cream);
}

.theme-highlight-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
  padding: 10px 22px;
}

.theme-highlight-item {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.theme-highlight-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: 1.5px solid var(--color-border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
}

.theme-highlight-item--active .theme-highlight-checkbox {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
}

.theme-highlight-item--active .theme-highlight-checkbox .MuiSvgIcon-root {
  font-size: 16px;
}

.theme-swatch {
  display: flex;
  width: 139px;
  height: 20px;
  border-radius: 0;
  overflow: hidden;
  flex-shrink: 0;
}

.theme-swatch-segment {
  flex: 1;
}

.theme-highlight-label.MuiTypography-root {
  font-size: 14px;
  color: var(--color-text-user);
}

.theme-highlight-dark-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 22px;
}

.dark-mode-switch.MuiSwitch-root,
.mfa-switch.MuiSwitch-root,
.email-settings-switch.MuiSwitch-root {
  width: 40px;
  height: 22px;
  padding: 0;
  opacity: 1;
  margin-right: 0;
}

.dark-mode-switch .MuiSwitch-switchBase,
.mfa-switch .MuiSwitch-switchBase,
.email-settings-switch .MuiSwitch-switchBase {
  padding: 3px;
}

.dark-mode-switch .MuiSwitch-switchBase.Mui-checked,
.mfa-switch .MuiSwitch-switchBase.Mui-checked,
.email-settings-switch .MuiSwitch-switchBase.Mui-checked {
  transform: translateX(18px);
}

.dark-mode-switch .MuiSwitch-thumb,
.mfa-switch .MuiSwitch-thumb,
.email-settings-switch .MuiSwitch-thumb {
  width: 16px;
  height: 16px;
}

.dark-mode-switch .MuiSwitch-track,
.mfa-switch .MuiSwitch-track,
.email-settings-switch .MuiSwitch-track {
  border-radius: 50px;
  opacity: 1;
}

.dark-mode-switch .MuiSwitch-switchBase:not(.Mui-checked)+.MuiSwitch-track,
.email-settings-switch .MuiSwitch-switchBase:not(.Mui-checked)+.MuiSwitch-track {
  background-color: #D1D5DB;
  opacity: 1;
}

.dark-mode-label.MuiTypography-root {
  font-weight: 500;
  font-size: 14px;
  line-height: 15px;
  letter-spacing: 0px;
  color: #64748B;
  opacity: 1;
}

/* ---- Forms ---- */

.profile-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 20px;
}

.profile-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: relative;
}

.profile-field-full {
  grid-column: 1 / -1;
}

.profile-field-right {
  grid-column: 2;
}

.profile-field-hidden {
  display: none !important;
}

.profile-field-invisible {
  visibility: hidden !important;
}

.profile-field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: -1px;
}

.profile-label.MuiTypography-root {
  font-family: 'Inter', 'Segoe UI', 'Trebuchet MS', Helvetica, sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 16px;
  letter-spacing: 0.3px;
  color: #64748b;
  margin-bottom: 8px;
}

.profile-link.MuiTypography-root {
  display: inline-block;
  align-self: flex-end;
  margin-top: 6px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 400;
  color: var(--color-primary);
  cursor: pointer;
  text-decoration: none;
  position: absolute;
  bottom: -25px;
}

.profile-link.MuiTypography-root:hover {
  text-decoration: underline;
}

.mfa-setup-link.MuiTypography-root {
  font-family: 'Inter', 'Segoe UI', 'Trebuchet MS', Helvetica, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 15px;
  letter-spacing: 0px;
  color: #007A81;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-style: solid;
}

.profile-input .MuiOutlinedInput-root,
.profile-select.MuiOutlinedInput-root {
  background: #FFFFFF;
  border-radius: 10px;
  height: 40px;
  font-size: 0.9rem;
  opacity: 1;
}

/* A fixed 40px height (above) fits a single-line input, but a multiline TextField (e.g. Email
   Signature) needs to grow with its rows instead of having its textarea clipped to that height. */
.profile-input .MuiOutlinedInput-root.MuiInputBase-multiline {
  height: auto;
  padding: 8.5px 14px;
}

.profile-input .MuiOutlinedInput-notchedOutline,
.profile-select .MuiOutlinedInput-notchedOutline {
  border-width: 1px;
  border-color: #98A2B3;
}

.profile-input .MuiOutlinedInput-root:hover .MuiOutlinedInput-notchedOutline,
.profile-select:hover .MuiOutlinedInput-notchedOutline {
  border-color: var(--color-primary);
}

.profile-input .MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline,
.profile-select.Mui-focused .MuiOutlinedInput-notchedOutline {
  border-color: var(--color-primary-deep) !important;
  border-width: 1px !important;
  box-shadow: 0 0 4px 3px rgba(10, 128, 136, 0.15) !important;
}

.profile-input .MuiInputAdornment-root {
  color: #90a0b1;
  max-width: 20px;
  width: 100%;
  justify-content: center;
}

.profile-field-icon {
  display: block;
  max-height: 18px;
  object-fit: contain;
}

.profile-info-icon {
  max-width: 22px;
  width: 100%;
  justify-content: center;
  display: flex;
  margin-top: 5px;
}

.profile-status-value {
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-role-select.MuiOutlinedInput-root {
  height: 40px;
  opacity: 1;
}

.profile-inline-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.profile-checkbox-label.MuiFormControlLabel-root,
.profile-switch-label.MuiFormControlLabel-root {
  margin-left: -6px;
  color: var(--color-text-user);
  padding: 0;
}

.profile-checkbox-label .MuiFormControlLabel-label {
  font-size: 13px;
}

.profile-switch-label .MuiFormControlLabel-label {
  font-family: 'Inter', 'Segoe UI', 'Trebuchet MS', Helvetica, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 15px;
  letter-spacing: 0px;
  margin-left: 10px;
}

.profile-hint.MuiTypography-root {
  font-size: 12px;
  color: var(--color-muted);
  margin-top: 6px;
  position: absolute;
  bottom: -25px;
  font-style: italic;
  line-height: normal;
}

/* ---- Email signature ---- */

.profile-card.email-signature-card {
  width: 100%;
  min-height: 300.5px;
  opacity: 1;
}

.profile-signature-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  background: #f1f5f9;
  border: 1px solid #E5E7EB;
  border-bottom: none;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  padding: 8px 15px;
  margin-bottom: 0;
  box-sizing: border-box;
}

.profile-signature-select .MuiOutlinedInput-root {
  height: 32px;
  font-size: 0.78rem;
  background: var(--color-card-bg);
  border-radius: 7px;
}

.profile-signature-select .MuiOutlinedInput-notchedOutline {
  border-color: var(--color-border);
}

.profile-signature-toolbar-btn.MuiIconButton-root {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  color: var(--color-muted);
}

.profile-signature-toolbar-btn.MuiIconButton-root:hover {
  background: var(--color-card-bg);
  color: var(--color-primary);
}

.profile-signature-toolbar-btn.MuiIconButton-root.Mui-disabled {
  color: var(--color-muted);
  opacity: 0.5;
}

.profile-signature-divider {
  width: 1px;
  height: 18px;
  background: var(--color-border);
  margin: 0 2px;
}

.profile-signature-toolbar-spacer {
  flex: 1 1 auto;
  min-width: 8px;
}

.profile-signature-emoji-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  padding: 6px;
}

.profile-signature-emoji-btn.MuiIconButton-root {
  width: 34px;
  height: 34px;
  font-size: 18px;
  border-radius: 7px;
}

.profile-signature-autosave.MuiTypography-root {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-muted);
  white-space: nowrap;
  padding-left: 6px;
}

.profile-signature-editor {
  min-height: 150px;
  padding: 4px 2px;
  font-family: 'Plus Jakarta Sans', 'Inter', 'Segoe UI', 'Trebuchet MS', Helvetica, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 23.63px;
  letter-spacing: 0;
  color: var(--color-text);
  outline: none;
  border: 1px solid #E5E7EB;
  border-top: none;
  border-radius: 0 0 10px 10px;
  padding: 20px;
}

.profile-signature-editor p {
  margin: 0 0 4px;
  font-size: 14px;
  color: var(--mirage);
}

.profile-signature-editor p.signature-regards {
  margin-bottom: 15px;
}

.profile-signature-editor p.signature-name {
  margin: 0;
  font-size: 14px;
}

.profile-signature-editor p.signature-title {
  margin: -5px 0 10px 0;
  font-size: 12px;
}

.profile-signature-editor p.signature-company {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-primary);
}

.profile-signature-editor p.signature-address {
  margin: -5px 0 0 0;
  font-size: 12px;
}

.profile-signature-editor p.signature-phone {
  margin: 0;
  font-size: 12px;
}

.profile-signature-editor p:last-child {
  margin-bottom: 0;
}

.profile-signature-editor strong,
.profile-signature-editor b {
  font-weight: 700;
  line-height: 14px;
  letter-spacing: 0;
}

/* ProseMirror (TipTap's engine) always renders at least one <p>, even when "empty" to the user, so
   :empty never matches here - TipTap's own Placeholder extension marks that one empty paragraph
   with is-editor-empty and a data-placeholder attribute instead; same visible placeholder text and
   color as before, just a different selector to hook it. */
.profile-signature-editor p.is-editor-empty:first-child::before {
  content: attr(data-placeholder);
  color: var(--color-muted);
  float: left;
  height: 0;
  pointer-events: none;
}

/* TipTap's BubbleMenu for Insert Link/Image (LinkImageBubbleMenu) - a small floating bar positioned
   by floating-ui, not a modal, so it gets its own compact card styling rather than reusing the
   change-password-dialog classes built for a centered dialog. */
.link-image-bubble-menu {
  z-index: 1300;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(17, 52, 71, 0.12);
  padding: 6px 8px;
}

.link-image-bubble-menu-form {
  display: flex;
  align-items: center;
  gap: 4px;
}

.link-image-bubble-menu-input {
  width: 240px;
}

.link-image-bubble-menu-input .MuiInputBase-input {
  font-size: 0.84rem;
}

.link-image-bubble-menu-file-input {
  display: none;
}

.link-image-bubble-menu-error {
  flex-basis: 100%;
  color: var(--color-error, #d32f2f);
  font-size: 0.78rem;
}

/* ---- Actions ---- */

.profile-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}



.profile-btn-save.MuiButton-root.Mui-disabled {
  background: var(--color-primary);
  color: #ffffff;
}

/* ---- Change password dialog ---- */

.change-password-dialog .MuiPaper-root {
  border-radius: 16px;
  max-width: 800px;
  width: calc(100% - 64px);
}

.change-password-dialog-title.MuiDialogTitle-root {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Inter', 'Segoe UI', 'Trebuchet MS', Helvetica, sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--color-text-user);
  padding: 15px 20px;
  border-bottom: 1px solid #DBE0E5;
}

.change-password-dialog-content {
  margin-top: 15px;
  max-height: 185px;
  overflow-y: auto;
}

.change-password-dialog-close.MuiIconButton-root {
  color: var(--color-muted);
  padding: 0;
}

.change-password-dialog-actions.MuiDialogActions-root {
  padding: 15px;
  border-top: 1px solid #DBE0E5;
}

.dialog-btn-icon {
  display: block;
  width: 16px;
  height: 16px;
}

.dialog-cancel-icon {
  opacity: 0.7;
}

/* ---- Responsive ---- */

@media (max-width: 1024px) {
  .profile-page {
    grid-template-columns: 260px 1fr;
  }
}

@media (max-width: 900px) {
  .profile-page {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .profile-page {
    padding: 16px;
    gap: 16px;
  }

  .profile-card {
    padding: 16px;
  }

  .profile-form-grid {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .profile-actions {}

  .profile-actions .MuiButton-root {
    width: auto !important;
  }
}

/* ---- Super admin (Polidyne staff) sidebar ---- */

.super-admin-sidebar {
  width: 260px !important;
  flex-shrink: 0;
  background: var(--color-chrome-bg);
  padding: 30px 15px 30px !important;
  overflow: hidden;
  transition: transform 0.2s ease, width 0.2s ease, padding 0.2s ease;
}

/* Collapsing the sidebar must also collapse the space it reserves in the
   flex row, or .dashboard-content (flex: 1) never reclaims that width and
   every page is left with a dead gap on the left when the sidebar is closed. */
.super-admin-sidebar--closed {
  width: 0 !important;
  padding: 0 !important;
  transform: translateX(-100%);
}

.super-admin-sidebar-section-label {
  display: block;
  height: 9px;
  width: auto;
  margin: 0 0 15px 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #35A1A7;
}

.super-admin-sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.super-admin-sidebar-list-item {
  display: block;
  margin: 10px 0;
}

.super-admin-sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 39px;
  padding: 0 15px;
  color: #ffffff;
  text-decoration: none;
  font-family: 'Inter', 'Segoe UI', 'Trebuchet MS', Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 400;
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
}

.super-admin-sidebar-item:hover {
  background: var(--color-primary);
  border-radius: 7px;
  border-left: 2px solid #7FBC03;
}

.super-admin-sidebar-item--active {
  background: var(--color-primary);
  font-weight: 700;
  border-radius: 7px;
  border-left: 2px solid #7FBC03;
}

.super-admin-sidebar-item-icon {
  flex-shrink: 0;
  width: 17px;
  height: 19px;
  filter: brightness(0) invert(1);
}

/* ---- Audit & Compliance page (also reused by the Users admin page) ---- */

.audit-compliance-page,
.users-page {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.audit-compliance-title.MuiTypography-root {
  font-family: 'Inter', 'Segoe UI', 'Trebuchet MS', Helvetica, sans-serif;
  font-size: 22px;
  font-weight: 600 !important;
  color: var(--color-text-user);
}

.audit-compliance-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.audit-compliance-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-primary);
}

.audit-compliance-card-header-icon {
  max-width: 20px;
}

.audit-filter-icon {
  height: 18px;
  flex-shrink: 0;
}

.audit-compliance-card-title.MuiTypography-root {
  font-size: 16px;
  font-weight: 700 !important;
  color: var(--color-text-user);
}

.audit-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
}

.audit-filter-input {
  max-width: 190px;
  width: 100%;
  flex: 1 1 120px;
  border-radius: 10px;
  height: 40px !important;
}

.audit-filter-input .MuiInputBase-formControl {
  border-radius: 10px;
  font-size: 14px;
}

.audit-filter-date {
  max-width: 160px;
  width: 100%;
  flex: 1 1 175px;
  margin-right: -10px !important;
  height: 40px !important;
}

.audit-filter-select {
  max-width: 190px;
  width: 100%;
  border-radius: 10px !important;
  margin-left: 10px;
  font-size: 14px !important;
  height: 40px !important;
}

.audit-filter-select img {
  max-height: 16px !important;
  margin-right: 4px;
  opacity: 0.7;
}

.audit-search-button.MuiButton-root {
  border-radius: 8px;
  background: #153032;
  color: #ffffff;
  text-transform: none;
  font-weight: 600;
  padding: 8px 18px;
  max-height: 40px;
}

.audit-clear-button.MuiButton-root {
  border-radius: 8px;
  border-color: var(--color-border);
  color: var(--color-text-user);
  text-transform: none;
  font-weight: 600;
  padding: 8px 18px;
  max-height: 40px;
}

.audit-clear-button.MuiButton-root:hover {
  border-color: var(--color-border);
  background: rgba(0, 0, 0, 0.04);
}

.audit-export-button.MuiButton-root {
  border-radius: 8px;
  background: var(--color-primary);
  color: #ffffff;
  text-transform: none;
  font-weight: 600;
  padding: 8px 18px;
  max-height: 40px;
}

.audit-export-button-hidden.MuiButton-root {
  display: none !important;
}

.audit-table-container {
  border-top: none;
}

.audit-table th,
.audit-table .MuiTableCell-head {
  font-size: 13px;
  font-weight: 700 !important;
  letter-spacing: 0.5px;
  color: var(--color-text-user) !important;
  border-bottom: none;
  line-height: normal;
}

.audit-table-empty {
  text-align: center;
  color: var(--color-text-muted, #6b7a86);
  padding: 32px 0;
}

.audit-table-location {
  font-size: 11px;
  color: var(--color-text-muted, #6b7a86);
  margin-top: 2px;
}

.audit-outcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid transparent;
  text-transform: capitalize;
}

.audit-outcome-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.audit-outcome-badge--success {
  background: #ecfdf3;
  color: #12b76a;
  border-color: #a6f4c5;
}

.audit-outcome-badge--failure {
  background: #fef3f2;
  color: #f04438;
  border-color: #fecdca;
}

.audit-outcome-badge--partial {
  background: #fffaeb;
  color: #f79009;
  border-color: #fedf89;
}

.users-action-button.MuiButton-root {
  border-radius: 8px;
  text-transform: none;
  font-weight: 600;
}

@media (max-width: 768px) {
  .super-admin-sidebar {
    position: fixed;
    top: 74px;
    bottom: 0;
    left: 0;
    z-index: 1200;
  }
}

.home-coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 60vh;
  text-align: center;
}

.home-coming-soon-icon {
  width: 48px;
  height: 48px;
  opacity: 0.5;
  margin-bottom: 8px;
}

.home-coming-soon-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text, #101828);
}

.home-coming-soon-subtitle {
  font-size: 14px;
  color: var(--color-text-muted, #6b7a86);
}

.audit-table thead {
  border-bottom: 1px solid var(--color-border);
}

.audit-table thead tr th {
  padding-top: 0;
}

.audit-table thead tr th:last-child {
  text-align: center;
}

.audit-table tbody tr:hover {
  background: var(--authentic-white) !important;
}

.audit-table tbody tr td {
  padding: 10px 16px;
}

.audit-table tbody tr td:last-child {
  text-align: center;
}

.grid-boarder-top {
  border-bottom: 1px solid var(--color-border);
}

.grid-boarder-top td {
  border: none;
}

.paragraph-select {
  background: var(--color-white);
  height: 26px !important;
  border-radius: 4px !important;
  font-size: 12px !important;
  width: 105px !important;
}

.paragraph-select img {
  max-width: 12px;
}

.font-family-select {
  background: var(--color-white);
  height: 26px !important;
  border-radius: 4px !important;
  font-size: 12px !important;
  margin: 0 5px;
  width: 147px !important;
}

.font-family-select img {
  max-width: 12px;
}

.font-size-select {
  background: var(--color-white);
  height: 26px !important;
  border-radius: 4px !important;
  font-size: 12px !important;
  width: 72px !important;
}

.font-size-select img {
  max-width: 12px;
}

.upload-file-icon {
  max-height: 36px;
}

.MuiTablePagination-select {
  background: var(--authentic-white);
  border-radius: 10px;
  border: 1px solid var(--color-border);
  padding: 0 10px 0 0px;
  width: 65px;
}

.MuiTablePagination-select img {
  margin: -2px 5px 0 0;
}

.dashboard-notification-button {
  background: none !important;
}

.dashboard-notification-button:hover {
  background: none !important;
}

.dashboard-notification-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 20px;
  margin-bottom: 12px;
  background: var(--color-primary);
  color: var(--authentic-white);
}

.dashboard-notification-banner-icon {
  flex-shrink: 0;
}

.dashboard-notification-banner-message {
  flex: 1 1 auto;
  color: inherit;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-notification-banner-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.dashboard-notification-banner-nav-button,
.dashboard-notification-banner-close {
  color: inherit !important;
}

.dashboard-notification-banner-counter {
  color: inherit;
  opacity: 0.85;
  white-space: nowrap;
}

/* ---- Dismiss confirmation dialog ---- */

.dashboard-notification-dismiss-dialog .MuiPaper-root {
  border-radius: 16px;
  max-width: 440px;
  width: calc(100% - 64px);
}

.dashboard-notification-dismiss-dialog-title.MuiDialogTitle-root {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Inter', 'Segoe UI', 'Trebuchet MS', Helvetica, sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--color-text-user);
  padding: 15px 20px;
  border-bottom: 1px solid #DBE0E5;
}

.dashboard-notification-dismiss-dialog-close.MuiIconButton-root {
  color: var(--color-muted);
  padding: 0;
}

.dashboard-notification-dismiss-dialog-content {
  padding: 20px !important;
  color: var(--color-text) !important;
  font-size: 14px !important;
}

.dashboard-notification-dismiss-dialog-text {
  color: var(--color-text) !important;
  font-size: 14px !important;
}

.dashboard-notification-dismiss-dialog-actions.MuiDialogActions-root {
  padding: 15px;
  border-top: 1px solid #DBE0E5;
}


.email-settings-switch .Mui-checked + .MuiSwitch-track {
    background: var(--color-primary-deep) !important;
    opacity: 1 !important;
}


.email-settings-switch .Mui-checked {
    color: var(--color-white) !important;
}
