@import url("/mangel-upload/qmc_backup_settings.css?v=backup-ui-1");

/*
 * QMC shared application sidebar
 * Central source for navigation sidebar geometry and appearance.
 * qmc-sidebar-v1
 */

:root {
  --qmc-sidebar-expanded-width: 188px;
  --qmc-sidebar-compact-width: 58px;
  --qmc-sidebar-bg-top: #0b2038;
  --qmc-sidebar-bg-bottom: #07182a;
  --qmc-sidebar-accent: #2167ed;
  --qmc-sidebar-text: #d8e4f0;
}

.qmc-app-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 5000;
  width: var(--qmc-sidebar-expanded-width);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  padding: 18px 10px 14px;
  color: #fff;
  background: linear-gradient(
    180deg,
    var(--qmc-sidebar-bg-top),
    var(--qmc-sidebar-bg-bottom)
  );
  box-shadow: 8px 0 24px rgba(12,29,49,.12);
  transition: width .18s ease;
}

.qmc-app-sidebar.qmc-sidebar-compact {
  width: var(--qmc-sidebar-compact-width);
  padding-left: 8px;
  padding-right: 8px;
}

.qmc-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 6px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.qmc-sidebar-brandmark {
  position: relative;
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 6px;
  background: #e33b32;
  color: #fff;
  box-shadow: 0 2px 6px rgba(227,59,50,.18);
  overflow: hidden;
}

.qmc-sidebar-brand-r {
  position: absolute;
  left: 7px;
  bottom: 3px;
  font-family: Arial,sans-serif;
  font-size: 18px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -1.4px;
  color: #fff;
}

.qmc-sidebar-brand-2 {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 8px;
  height: 8px;
  box-sizing: border-box;
  border: 1px solid #fff;
  border-radius: 1.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Arial,sans-serif;
  font-size: 6px;
  line-height: 1;
  font-weight: 600;
  color: #fff;
}

.qmc-sidebar-brandtext {
  font-size: 18px;
  font-weight: 800;
  white-space: nowrap;
}

.qmc-sidebar-item {
  height: 42px;
  min-height: 42px;
  box-sizing: border-box;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--qmc-sidebar-text);
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 10px;
  margin-top: 4px;
  font: inherit;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
}

.qmc-sidebar-item:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
}

.qmc-sidebar-item.qmc-sidebar-active {
  background: var(--qmc-sidebar-accent);
  color: #fff;
}

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

.qmc-sidebar-icon {
  width: 22px;
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
}

.qmc-sidebar-icon svg {
  width: 21px;
  height: 21px;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.qmc-sidebar-label {
  font-size: 14px;
}

.qmc-sidebar-spacer {
  flex: 1;
}

.qmc-workspace-menu {
  box-sizing: border-box;
  position: fixed;
  left: calc(var(--qmc-sidebar-expanded-width) + 10px);
  bottom: 126px;
  z-index: 15000;
  display: none;
  width: 202px;
  padding: 5px;
  border: 1px solid rgba(124, 145, 166, .20);
  border-radius: 12px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 12px 28px rgba(10, 28, 48, .16);
}

.qmc-workspace-menu.open {
  display: grid;
  gap: 4px;
}

.qmc-workspace-menu-item {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: stretch;
  gap: 4px;
  width: 100%;
  min-height: 101px;
  padding: 4px 5px;
  border: 0;
  border-radius: 9px;
  background: #f5f8fb;
  color: #17304e;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.qmc-workspace-menu-item.qmc-workspace-slot-1 {
  background: #e8f4eb;
}

.qmc-workspace-menu-item.qmc-workspace-slot-2 {
  background: #f7f1d8;
}

.qmc-workspace-menu-item.qmc-workspace-slot-3 {
  background: #f6e5e5;
}

.qmc-workspace-menu-item.qmc-workspace-slot-1:hover {
  background: #dceee1;
}

.qmc-workspace-menu-item.qmc-workspace-slot-2:hover {
  background: #f1e8c5;
}

.qmc-workspace-menu-item.qmc-workspace-slot-3:hover {
  background: #efd8d8;
}

.qmc-workspace-menu-preview-wrap {
  position: relative;
  width: 100%;
  height: 101px;
  min-width: 0;
}

.qmc-workspace-menu-preview {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(76, 96, 119, .14);
  border-radius: 7px;
  background: transparent;
  box-shadow: 0 1px 4px rgba(10, 28, 48, .06);
}

.qmc-workspace-menu-preview img {
  display: none;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  background: #fff;
}

.qmc-workspace-menu-preview img.loaded {
  display: block;
}

.qmc-workspace-menu-label {
  width: 22px;
  height: auto;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .015em;
  white-space: nowrap;
}

.qmc-workspace-menu-eye {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(76, 96, 119, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .98);
  color: #52677f;
  box-shadow: 0 1px 4px rgba(10, 28, 48, .10);
}

.qmc-workspace-menu-eye.empty {
  opacity: .18;
}

.qmc-workspace-menu-eye svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.qmc-sidebar-page-compact .qmc-workspace-menu {
  left: calc(var(--qmc-sidebar-compact-width) + 10px);
}

@media (max-width: 900px) {
  .qmc-workspace-menu,
  body.qmc-sidebar-page-compact .qmc-workspace-menu {
    left: 70px;
    right: 12px;
    bottom: 82px;
    width: auto;
  }
}

.qmc-sidebar-administration {
  display: flex;
  justify-content: center;
  padding: 0 0 8px;
}

.qmc-sidebar-admin-button {
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--qmc-sidebar-text);
  cursor: pointer;
}

.qmc-sidebar-admin-button:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
}

.qmc-sidebar-admin-button.qmc-sidebar-active {
  background: var(--qmc-sidebar-accent);
  color: #fff;
}

.qmc-sidebar-administration + .qmc-sidebar-user {
  margin-top: 0;
}

.qmc-sidebar-user {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 7px;
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 10px;
  min-height: 54px;
  cursor: pointer;
  user-select: none;
}

.qmc-sidebar-avatar {
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 50%;
  background: #fff;
  color: #17304e;
  display: grid;
  place-items: center;
  font-weight: 800;
  overflow: hidden;
}

.qmc-profile-avatar-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  border-radius: inherit;
}

.qmc-profile-avatar-image[hidden],
.qmc-profile-avatar-fallback[hidden] {
  display: none;
}

.qmc-sidebar-usertext {
  min-width: 0;
}

.qmc-sidebar-username {
  font-weight: 750;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qmc-sidebar-userrole {
  font-size: 11px;
  color: #9eb1c5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qmc-sidebar-collapse {
  position: absolute;
  right: -15px;
  top: 21px;
  width: 15px;
  height: 32px;
  min-width: 15px;
  min-height: 32px;
  padding: 0;
  border: 1px solid #07182a;
  border-left: 0;
  border-radius: 0 10px 10px 0;
  background: #07182a;
  color: #fff;
  box-shadow: 4px 0 12px rgba(10,28,48,.14);
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 3;
}

.qmc-sidebar-collapse::before {
  content: "";
  width: 6px;
  height: 6px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(-45deg);
}

.qmc-app-sidebar.qmc-sidebar-compact
.qmc-sidebar-collapse::before {
  transform: rotate(135deg);
}

.qmc-app-sidebar.qmc-sidebar-compact .qmc-sidebar-label,
.qmc-app-sidebar.qmc-sidebar-compact .qmc-sidebar-brandtext,
.qmc-app-sidebar.qmc-sidebar-compact .qmc-sidebar-usertext {
  display: none;
}

.qmc-app-sidebar.qmc-sidebar-compact .qmc-sidebar-item {
  justify-content: center;
  padding: 0;
}

.qmc-app-sidebar.qmc-sidebar-compact .qmc-sidebar-brand,
.qmc-app-sidebar.qmc-sidebar-compact .qmc-sidebar-user {
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
}

/*
 * Optional content offset for standalone pages.
 * The JS component adds this class to body when requested.
 */
body.qmc-sidebar-page {
  padding-left: var(--qmc-sidebar-expanded-width) !important;
  transition: padding-left .18s ease;
}

body.qmc-sidebar-page.qmc-sidebar-page-compact {
  padding-left: var(--qmc-sidebar-compact-width) !important;
}

#qmc-user-profile-backdrop {
  position: fixed;
  inset: 0;
  z-index: 13000;
  display: none;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 20px;
  background: rgba(12,30,48,.42);
  backdrop-filter: blur(1.5px);
}

#qmc-user-profile-backdrop.open {
  display: flex;
}

#qmc-user-profile-dialog {
  width: min(1180px,calc(100vw - 40px));
  max-height: calc(100vh - 32px);
  overflow-x: hidden;
  overflow-y: auto;
  box-sizing: border-box;
  padding: 18px;
  border: 1px solid #d3deea;
  border-radius: 18px;
  background: #fff;
  color: #10233d;
  box-shadow: 0 24px 70px rgba(12,31,50,.28);
}

.qmc-user-profile-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

#qmc-user-profile-title {
  font-size: 23px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.3px;
}

.qmc-user-profile-subtitle {
  margin-top: 5px;
  color: #687c91;
  font-size: 12px;
}

#qmc-user-profile-close {
  width: 24px;
  height: 24px;
  min-width: 24px;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  box-shadow: none;
  background: transparent;
  color: #687c91;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

#qmc-user-profile-close:hover,
#qmc-user-profile-close:focus,
#qmc-user-profile-close:focus-visible {
  border: 0;
  outline: 0;
  box-shadow: none;
  background: transparent;
  color: #344b62;
}

.qmc-user-profile-body {
  min-width: 0;
}

.qmc-user-profile-top {
  display: grid;
  grid-template-columns: 240px minmax(0,1fr);
  gap: 12px;
  align-items: stretch;
}

.qmc-user-profile-lower {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
  gap: 12px;
  align-items: stretch;
  margin-top: 12px;
}

.qmc-user-profile-lower > section {
  min-height: 295px;
}

.qmc-user-profile-identity {
  min-width: 0;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid #dde6ef;
  border-radius: 14px;
  background: linear-gradient(180deg,#f9fbfd,#f3f7fb);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#qmc-user-profile-avatar {
  width: 68px;
  height: 68px;
  margin: 0 auto 4px;
  overflow: hidden;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #17304e;
  color: #fff;
  font-size: 34px;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(12,31,50,.17);
}

#qmc-user-profile-name {
  font-size: 15px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

#qmc-user-profile-role {
  margin-top: 3px;
  color: #687c91;
  font-size: 12px;
}

.qmc-user-profile-language {
  display: grid;
  justify-items: center;
  gap: 3px;
  margin-top: 9px;
  padding-top: 7px;
  border-top: 1px solid #dde6ef;
}

#qmc-user-language-default {
  color: #7a8b9b;
  font-size: 10px;
  line-height: 1.2;
}

#qmc-user-language-select {
  width: 138px;
  max-width: 100%;
  min-height: 25px;
  box-sizing: border-box;
  padding: 2px 22px 2px 7px;
  border: 1px solid #cad6e3;
  border-radius: 7px;
  background: #fff;
  color: #31475d;
  font: inherit;
  font-size: 11px;
  line-height: 1.2;
}

#qmc-user-language-select:focus {
  border-color: #2167ed;
  outline: 2px solid rgba(33,103,237,.12);
}

.qmc-user-profile-language #qmc-user-language-status {
  min-height: 0;
  margin: 0;
  font-size: 10px;
  line-height: 1.2;
}

.qmc-user-profile-language #qmc-user-language-status:empty {
  display: none;
}

.qmc-user-profile-details {
  min-width: 0;
}

.qmc-user-profile-form-section {
  min-width: 0;
  box-sizing: border-box;
  padding: 6px 12px;
  border: 1px solid #dbe4ed;
  border-radius: 11px;
  background: #f9fbfd;
}

.qmc-user-profile-form-section h3 {
  margin: 0 0 4px;
  color: #52677c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.qmc-user-profile-form-section label {
  display: block;
  margin: 3px 0 1px;
  color: #6b7b8c;
  font-size: 11px;
  font-weight: 700;
}

.qmc-user-profile-form-section input {
  width: 100%;
  min-height: 28px;
  box-sizing: border-box;
  padding: 5px 9px;
  border: 1px solid #cad6e3;
  border-radius: 8px;
  background: #fff;
  color: #17304e;
  font: inherit;
  font-size: 13px;
}

.qmc-user-profile-form-section input[readonly] {
  background: #edf3f8;
  color: #52677c;
}

.qmc-user-profile-form-section input:focus {
  border-color: #2167ed;
  outline: 2px solid rgba(33,103,237,.14);
}

.qmc-user-profile-data-fields {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 2px 10px;
}

.qmc-user-profile-data-fields > div,
.qmc-user-profile-password-fields > div {
  min-width: 0;
}

.qmc-user-profile-password-fields {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 10px;
  margin-top: 3px;
  padding-top: 2px;
  border-top: 1px solid #e3eaf1;
}

.qmc-user-profile-section-status {
  min-height: 17px;
  margin-top: 10px;
  color: #52677c;
  font-size: 11px;
  font-weight: 700;
}

.qmc-user-profile-form-section .qmc-user-profile-section-status:empty {
  display: none;
}

.qmc-user-profile-form-section .qmc-user-profile-section-status:not(:empty) {
  margin-top: 5px;
}

.qmc-user-profile-section-status.success {
  color: #245f45;
}

.qmc-user-profile-section-status.error {
  color: #a52929;
}

.qmc-user-profile-field {
  min-height: 62px;
  box-sizing: border-box;
  padding: 11px 13px;
  border: 1px solid #dbe4ed;
  border-radius: 11px;
  background: #f9fbfd;
}

.qmc-user-profile-field + .qmc-user-profile-field {
  margin-top: 10px;
}

.qmc-user-profile-field span {
  display: block;
  margin-bottom: 4px;
  color: #6b7b8c;
  font-size: 11px;
}

.qmc-user-profile-field strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 14px;
}

.qmc-user-profile-actions,
.qmc-user-profile-camera-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.qmc-user-profile-identity .qmc-user-profile-actions {
  justify-content: center;
  gap: 5px;
  margin-top: 9px;
}

.qmc-user-profile-identity .qmc-user-profile-actions button {
  min-height: 29px;
  padding: 5px 7px;
  font-size: 10px;
}

.qmc-user-profile-actions button,
.qmc-user-profile-camera-actions button {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid #cad6e3;
  border-radius: 9px;
  background: #fff;
  color: #17304e;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.qmc-user-profile-actions button:hover,
.qmc-user-profile-camera-actions button:hover {
  background: #edf3f8;
}

.qmc-user-profile-actions button:disabled,
.qmc-user-profile-camera-actions button:disabled {
  opacity: .55;
  cursor: default;
}

#qmc-user-profile-upload,
#qmc-user-profile-camera-capture {
  border-color: #2167ed;
  background: #2167ed;
  color: #fff;
}

#qmc-user-profile-delete {
  color: #a52929;
}

#qmc-user-profile-camera-panel {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #dbe4ed;
  border-radius: 11px;
  background: #f3f7fb;
}

#qmc-user-profile-camera-panel[hidden] {
  display: none;
}

#qmc-user-profile-camera-video {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 9px;
  background: #07182a;
  object-fit: cover;
  object-position: center center;
  transform: scaleX(-1);
}

#qmc-user-profile-status {
  min-height: 15px;
  margin-top: 7px;
  color: #52677c;
  font-size: 12px;
}

#qmc-user-profile-status.error {
  color: #a52929;
}

.qmc-user-navigation-preferences,
.qmc-user-contact-sync {
  min-width: 0;
  box-sizing: border-box;
  margin-top: 0;
  padding: 11px 12px;
  border: 1px solid #dbe4ed;
  border-radius: 11px;
  background: #f9fbfd;
}

.qmc-user-profile-selectable-card {
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.qmc-user-profile-selectable-card:hover {
  border-color: #b9cbe0;
}

.qmc-user-profile-selectable-card.active {
  border-color: #7ea6d7;
  background: #f4f8fd;
  box-shadow: inset 0 0 0 1px rgba(33,103,237,.08);
}

.qmc-user-profile-selectable-card:focus {
  outline: none;
}

.qmc-user-profile-selectable-card:focus-visible {
  outline: 2px solid rgba(33,103,237,.18);
  outline-offset: 2px;
}

.qmc-user-navigation-preferences-head strong,
.qmc-user-navigation-preferences-head span {
  display: block;
}

.qmc-user-navigation-preferences-head strong {
  font-size: 13px;
}

.qmc-user-navigation-preferences-head span,
#qmc-user-navigation-preferences-saved,
#qmc-user-navigation-preferences-default-status,
.qmc-user-contact-sync-details {
  margin-top: 3px;
  color: #6b7b8c;
  font-size: 10px;
  line-height: 1.4;
}

.qmc-user-contact-sync-details {
  min-height: 14px;
}

.qmc-user-graph-plan-status {
  margin-top: 9px;
  color: #17304e;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

.qmc-user-graph-plan-status.error {
  color: #a52929;
}

.qmc-user-carddav-sync .qmc-user-profile-section-status,
.qmc-user-graph-sync .qmc-user-profile-section-status {
  margin-top: 9px;
}

#qmc-user-navigation-preferences-status {
  min-height: 17px;
  margin-top: 9px;
  color: #245f45;
  font-size: 11px;
  font-weight: 700;
}

#qmc-user-navigation-preferences-status.error {
  color: #a52929;
}

.qmc-user-navigation-preferences-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.qmc-user-navigation-preferences-actions button {
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid #cad6e3;
  border-radius: 8px;
  background: #fff;
  color: #17304e;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.qmc-user-navigation-preferences-actions button:hover {
  background: #edf3f8;
}

.qmc-user-navigation-preferences-actions button:disabled {
  opacity: .55;
  cursor: default;
}

.qmc-user-profile-lower .qmc-user-navigation-preferences-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.qmc-user-profile-lower .qmc-user-navigation-preferences-actions button {
  width: auto;
  min-height: 30px;
  padding: 5px 9px;
}

.qmc-user-navigation-preferences .qmc-user-navigation-preferences-actions button {
  width: 165px;
}

.qmc-user-graph-sync .qmc-user-navigation-preferences-actions button {
  min-width: 150px;
}

.qmc-user-profile-footer {
  position: sticky;
  bottom: -18px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px -18px -18px;
  padding: 11px 18px;
  border-top: 1px solid #dde6ef;
  background: #fff;
}

.qmc-user-profile-footer-context,
.qmc-user-profile-footer-main,
.qmc-user-profile-context-actions,
.qmc-user-profile-context-actions-inline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.qmc-user-profile-footer-context {
  min-width: 0;
  flex: 1 1 auto;
}

.qmc-user-profile-footer-main {
  flex: 0 0 auto;
}

.qmc-user-profile-context-actions[hidden],
.qmc-user-profile-context-actions-inline[hidden] {
  display: none;
}

.qmc-user-profile-footer button {
  min-width: 104px;
  min-height: 38px;
  padding: 8px 15px;
  border: 1px solid #cad6e3;
  border-radius: 9px;
  background: #fff;
  color: #17304e;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

#qmc-user-profile-dialog-cancel:hover {
  background: #edf3f8;
}

#qmc-user-profile-dialog-confirm {
  border-color: #2167ed;
  background: #2167ed;
  color: #fff;
}

#qmc-user-profile-dialog-confirm:hover {
  background: #1857ca;
}

#qmc-user-profile-dialog-close-footer {
  border-color: #2167ed;
  background: #2167ed;
  color: #fff;
}

#qmc-user-profile-dialog-close-footer:hover {
  background: #1857ca;
}


#qmc-carddav-settings-backdrop {
  position: fixed;
  inset: 0;
  z-index: 14000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(21, 37, 58, .42);
  backdrop-filter: blur(2px);
}

#qmc-carddav-settings-backdrop.open {
  display: flex;
}

#qmc-carddav-settings-dialog {
  display: flex;
  width: min(1120px, calc(100vw - 48px));
  max-height: min(820px, calc(100vh - 48px));
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #d8e1eb;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 26px 80px rgba(18, 36, 58, .24);
  color: #162a43;
}

#qmc-graph-scope-backdrop {
  position: fixed;
  inset: 0;
  z-index: 14000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(21, 37, 58, .42);
  backdrop-filter: blur(2px);
}

#qmc-graph-scope-backdrop.open {
  display: flex;
}

#qmc-graph-scope-dialog {
  display: flex;
  width: min(980px, calc(100vw - 48px));
  max-height: min(700px, calc(100vh - 48px));
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #d8e1eb;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 26px 80px rgba(18, 36, 58, .24);
  color: #162a43;
}

.qmc-carddav-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid #e0e7ef;
}

.qmc-carddav-head strong,
.qmc-carddav-head span {
  display: block;
}

.qmc-carddav-head strong {
  font-size: 18px;
}

.qmc-carddav-head span {
  margin-top: 3px;
  color: #6a7a8d;
  font-size: 11px;
}

.qmc-carddav-head > button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #53677e;
  font-size: 21px;
  cursor: pointer;
}

.qmc-carddav-head > button:hover {
  background: #eef3f8;
}

.qmc-carddav-body {
  min-height: 0;
  overflow: auto;
  padding: 18px 20px 20px;
}

.qmc-carddav-summary {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 11px 13px;
  border: 1px solid #dce5ee;
  border-radius: 10px;
  background: #f7fafe;
}

.qmc-carddav-summary strong {
  font-size: 12px;
}

.qmc-carddav-summary span {
  color: #697b8f;
  font-size: 11px;
}

.qmc-carddav-status {
  min-height: 18px;
  margin: 8px 2px 12px;
  color: #245f45;
  font-size: 11px;
  font-weight: 700;
}

.qmc-carddav-status.error {
  color: #a52929;
}

.qmc-carddav-workspace {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.qmc-carddav-workspace > section {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dce5ee;
  border-radius: 11px;
  background: #f8fafc;
}

.qmc-carddav-workspace h3 {
  margin: 0;
  padding: 12px 13px 10px;
  border-bottom: 1px solid #e1e7ee;
  background: #fff;
  font-size: 13px;
}

.qmc-carddav-card-list {
  display: flex;
  max-height: 300px;
  flex-direction: column;
  gap: 7px;
  overflow: auto;
  padding: 9px;
}

.qmc-carddav-card {
  width: 100%;
  min-height: 60px;
  height: auto;
  padding: 10px 11px;
  border: 1px solid #d8e2ed;
  border-radius: 9px;
  background: #fff;
  color: #172b44;
  text-align: left;
  cursor: pointer;
}

.qmc-carddav-card strong,
.qmc-carddav-card span {
  display: block;
}

.qmc-carddav-card strong {
  font-size: 12px;
}

.qmc-carddav-card span {
  margin-top: 4px;
  color: #728196;
  font-size: 10px;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}

.qmc-carddav-card:hover {
  border-color: #a9bed6;
  background: #f3f7fc;
}

.qmc-carddav-card.selected {
  border-color: #348756;
  background: #eaf7ef;
  box-shadow: inset 0 0 0 1px rgba(52, 135, 86, .15);
}

.qmc-carddav-card.inherited {
  border-color: #efc37f;
  background: #fff6e8;
}

.qmc-carddav-card.context-only {
  border-style: dashed;
  background: #f4f6f8;
  opacity: .72;
  cursor: default;
}

.qmc-carddav-empty {
  padding: 14px 10px;
  color: #75869a;
  font-size: 11px;
}

.qmc-carddav-devices {
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid #dce5ee;
  border-radius: 11px;
  background: #f8fafc;
}

.qmc-carddav-devices-head {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 13px;
  border-bottom: 1px solid #e1e7ee;
  background: #fff;
}

.qmc-carddav-devices-head h3 {
  margin: 0;
  font-size: 13px;
}

.qmc-carddav-devices-head span {
  display: block;
  margin-top: 3px;
  color: #728196;
  font-size: 10px;
}

.qmc-carddav-devices-head > div:last-child {
  display: flex;
  gap: 8px;
  align-items: center;
}

#qmc-carddav-device-name {
  min-width: 180px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #cbd6e2;
  border-radius: 8px;
  background: #fff;
  color: #18314e;
  font: inherit;
  font-size: 11px;
}

#qmc-carddav-device-create,
.qmc-carddav-device-row button {
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid #cbd6e2;
  border-radius: 8px;
  background: #fff;
  color: #18314e;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.qmc-carddav-device-row .qmc-carddav-scope-device-button {
  font-size: 0;
}

.qmc-carddav-device-row .qmc-carddav-scope-device-button::after {
  content: "Umfang";
  font-size: 11px;
}

.qmc-carddav-device-row .qmc-carddav-scope-device-button.selected,
.qmc-carddav-device-row .qmc-carddav-credentials-button.selected {
  border-color: #348756;
  background: #eaf7ef;
  box-shadow: inset 0 0 0 1px rgba(52, 135, 86, .15);
}

.qmc-carddav-device-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 9px;
}

.qmc-carddav-device-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 9px 10px;
  border: 1px solid #d8e2ed;
  border-radius: 9px;
  background: #fff;
}

.qmc-carddav-device-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.qmc-carddav-device-row strong,
.qmc-carddav-device-row span {
  display: block;
}

.qmc-carddav-device-row strong {
  font-size: 11px;
}

.qmc-carddav-device-row span {
  margin-top: 3px;
  color: #728196;
  font-size: 10px;
}

.qmc-carddav-device-revoked {
  color: #9b3131 !important;
  font-weight: 700;
}

#qmc-carddav-device-credential {
  padding: 9px;
  border-bottom: 1px solid #e1e7ee;
}

.qmc-carddav-credential-warning {
  margin-bottom: 7px;
  color: #9b3131;
  font-size: 10px;
  font-weight: 700;
}

.qmc-carddav-credential-grid {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 5px 10px;
  padding: 9px 10px;
  border: 1px solid #f0c88b;
  border-radius: 8px;
  background: #fff7e9;
  font-size: 10px;
}

.qmc-carddav-credential-grid span {
  color: #728196;
}

.qmc-carddav-credential-grid strong {
  overflow-wrap: anywhere;
  color: #172b44;
}

.qmc-carddav-private {
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid #dce5ee;
  border-radius: 11px;
  background: #f8fafc;
}

.qmc-carddav-private-head {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 13px;
  border-bottom: 1px solid #e1e7ee;
  background: #fff;
}

.qmc-carddav-private-head h3 {
  margin: 0;
  font-size: 13px;
}

.qmc-carddav-optional {
  display: inline !important;
  margin: 0 !important;
  color: #728196 !important;
  font-size: 11px !important;
  font-weight: 500;
}

.qmc-carddav-private-head span {
  display: block;
  max-width: 680px;
  margin-top: 3px;
  color: #728196;
  font-size: 10px;
  line-height: 1.35;
}

.qmc-carddav-private-head > div:last-child {
  display: flex;
  gap: 8px;
  align-items: center;
}

#qmc-carddav-private-search {
  min-width: 220px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #cbd6e2;
  border-radius: 8px;
  background: #fff;
  color: #18314e;
  font: inherit;
  font-size: 11px;
}

#qmc-carddav-private-search-button,
.qmc-carddav-private-row button {
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid #cbd6e2;
  border-radius: 8px;
  background: #fff;
  color: #18314e;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.qmc-carddav-private-list {
  display: flex;
  max-height: 260px;
  flex-direction: column;
  gap: 7px;
  overflow: auto;
  padding: 9px;
}

.qmc-carddav-private-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 9px 10px;
  border: 1px solid #d8e2ed;
  border-radius: 9px;
  background: #fff;
}

.qmc-carddav-private-row strong,
.qmc-carddav-private-row span {
  display: block;
}

.qmc-carddav-private-row strong {
  font-size: 11px;
}

.qmc-carddav-private-row span {
  margin-top: 3px;
  color: #728196;
  font-size: 10px;
}

.qmc-carddav-footer {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 9px;
  align-items: center;
  padding: 12px 20px;
  border-top: 1px solid #dfe6ee;
  background: #fff;
}

.qmc-carddav-footer button {
  min-height: 36px;
  padding: 7px 13px;
  border: 1px solid #cbd6e2;
  border-radius: 8px;
  background: #fff;
  color: #18314e;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.qmc-carddav-footer button:hover {
  background: #eef3f8;
}

#qmc-carddav-save {
  border-color: #2167ed;
  background: #2167ed;
  color: #fff;
}

#qmc-carddav-save:hover {
  background: #1857ca;
}

#qmc-carddav-reset {
  color: #9b3131;
}

.qmc-carddav-footer button:disabled {
  opacity: .55;
  cursor: default;
}

@media (max-width: 820px) {
  #qmc-carddav-settings-backdrop {
    padding: 10px;
  }

  #qmc-carddav-settings-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }

  .qmc-carddav-workspace {
    grid-template-columns: 1fr;
  }

  .qmc-carddav-card-list {
    max-height: 250px;
  }

  .qmc-carddav-devices-head,
  .qmc-carddav-private-head {
    align-items: stretch;
    flex-direction: column;
  }

  .qmc-carddav-devices-head > div:last-child,
  .qmc-carddav-private-head > div:last-child {
    align-items: stretch;
    flex-direction: column;
  }

  #qmc-carddav-device-name,
  #qmc-carddav-private-search {
    width: 100%;
  }

  .qmc-carddav-credential-grid {
    grid-template-columns: 1fr;
  }

  .qmc-carddav-footer {
    grid-template-columns: 1fr 1fr;
  }

  .qmc-carddav-footer > span {
    display: none;
  }
}

@media (max-width: 700px) {
  #qmc-user-profile-backdrop {
    padding: 10px;
  }

  #qmc-user-profile-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    padding: 14px;
  }

  .qmc-user-profile-top,
  .qmc-user-profile-lower {
    grid-template-columns: 1fr;
  }

  .qmc-user-profile-identity {
    min-height: 0;
  }

  .qmc-user-profile-footer {
    bottom: -14px;
    margin: 12px -14px -14px;
    padding: 10px 14px;
  }
}

@media (max-width: 520px) {
  .qmc-user-profile-data-fields,
  .qmc-user-profile-password-fields {
    grid-template-columns: 1fr;
  }
}

/* C133B15 - Admin section title follows sidebar compact state */
.qmc-sidebar-section-title {
    overflow: hidden;
    white-space: nowrap;
}

.qmc-sidebar-compact .qmc-sidebar-section-title {
    display: none;
}

/* C133B28: Administration behaves like every regular sidebar entry. */
.qmc-sidebar-administration {
  display: block;
  padding: 0 0 8px;
}

.qmc-sidebar-administration .qmc-sidebar-item {
  width: 100%;
  justify-content: flex-start;
}


/* QMC_HOME_TOUCH_TARGET_V1 */
/* Vergroesserte Touch-Trefferflaeche fuer den Homebutton. */
.qmc-app-sidebar .qmc-sidebar-item[data-qmc-sidebar-action="admin-exit"] {
    height: 56px;
    min-height: 56px;
    flex-shrink: 0;
    touch-action: manipulation;
}
