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

.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;
}

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

.dashboard-content {
  flex: 1;
  min-width: 0;
}

.dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  height: 72px;
  padding: 0 20px;
  background: var(--color-card-bg);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 2px 10px rgba(17, 52, 71, 0.06);
}

.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-icon {
  display: block;
  width: 18px;
  height: 24px;
}

.dashboard-avatar.MuiAvatar-root {
  width: 32px;
  height: 32px;
  background: linear-gradient(90deg, #007a81 0%, #009da5 50%, #95c11f 100%);
  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;
}

.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);
}

.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-muted);
}

.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-muted);
}

.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.85rem;
  padding: 0 12px;
  text-transform: none;
}

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

.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;
}

.sidebar--closed {
  transform: translateX(-100%);  
}

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

.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;
}

.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-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;
  line-height: 45px;
  letter-spacing: 0%;
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
}

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

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

.sidebar-item--active {
  background: var(--color-primary);
  color: #ffffff;
  font-weight: 700;
  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: 16px;
  height: 16px;
}

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

.sidebar-item-icon[data-icon='user-queues'] {
  width: 19.56px;
  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);
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.2);
    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: 24px;
}

.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;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.profile-card-title.MuiTypography-root {
  font-family: 'Inter', 'Segoe UI', 'Trebuchet MS', Helvetica, sans-serif;
  font-weight: 600;
  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;
  width: 302px;
  height: 500.19964599609375px;
  max-width: 100%;
  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;
}

.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-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: 3px 12px;
  border-radius: 20px;
  background: rgba(0, 122, 129, 0.12);
  color: var(--color-primary);
  font-size: 11px;
  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: center;
  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);
}

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

.profile-card.theme-highlight-card {
  width: 302.095703125px;
  height: 332px;
  max-width: 100%;
  opacity: 1;
}

.theme-highlight-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.theme-highlight-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  text-align: left;
}

.theme-highlight-checkbox {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  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: 12px;
}

.theme-swatch {
  display: flex;
  width: 92px;
  height: 10px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

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

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

.theme-highlight-dark-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--color-border);
}

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

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

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

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

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

.dark-mode-switch .MuiSwitch-switchBase:not(.Mui-checked) + .MuiSwitch-track {
  background-color: #98A2B3;
  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: 16px 20px;
}

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

.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: 8px;
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  text-decoration: none;
}

.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;
}

.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);
  box-shadow: 0 0 0 3px rgba(10, 128, 136, 0.15);
}

.profile-input .MuiInputAdornment-root {
  color: #90a0b1;
}

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

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

.profile-status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  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: 24px;
}

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

.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;
}

.profile-hint.MuiTypography-root {
  font-size: 11px;
  color: var(--color-muted);
  margin-top: 6px;
}

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

.profile-signature-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
}

.profile-signature-select .MuiOutlinedInput-root {
  height: 32px;
  font-size: 0.78rem;
  border-radius: 7px;
}

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

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

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

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

.profile-signature-editor {
  min-height: 150px;
  padding: 4px 2px;
  font-family: 'Inter', 'Segoe UI', 'Trebuchet MS', Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-text);
  outline: none;
}

.profile-signature-editor:empty::before {
  content: attr(data-placeholder);
  color: var(--color-muted);
}

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

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

.profile-btn-cancel.MuiButton-root {
  border-radius: 8px;
  border-color: var(--color-border);
  color: #ffffff;
  text-transform: none;
  font-weight: 600;
  padding: 8px 18px;
  background: #153032;
  max-height: 40px;
}

.profile-btn-save.MuiButton-root {
  border-radius: 8px;
  background: var(--color-primary);
  color: #ffffff;
  text-transform: none;
  font-weight: 600;
  padding: 8px 18px;
  max-height: 40px;
  margin-left: 0;
}

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

.change-password-dialog .MuiPaper-root {
  border-radius: 16px;
}

.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;
  border-bottom: 1px solid #DBE0E5;
}

.change-password-dialog-content {
  margin-top: 15px;
  max-height: 164px;
}

.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;
  }

  .profile-actions {
    flex-direction: column-reverse;
  }

  .profile-actions .MuiButton-root {
    width: 100%;
  }
}

