/* Partnerbereich: kompakte, klar gegliederte Monteurverwaltung */
.my-tech-list-panel {
  padding: 0;
  overflow: hidden;
}

.my-tech-section-head {
  gap: 24px;
  padding: 24px 26px;
  border-bottom: 1px solid #e2e9ec;
}

.my-tech-section-head h2 {
  margin-bottom: 4px;
}

.my-tech-count {
  flex: 0 0 auto;
  padding: 7px 12px;
  border: 1px solid #cfe4e2;
  border-radius: 999px;
  background: #eef9f7;
  color: #0f766e;
  font-size: 13px;
  font-weight: 800;
}

.my-tech-list {
  display: grid;
  gap: 16px;
  padding: 20px;
  background: #f7f9fa;
}

.my-tech-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dce5e8;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(15, 47, 57, .06);
}

.my-tech-card.is-inactive {
  background: #fbfbfb;
}

.my-tech-overview {
  display: grid;
  grid-template-columns: minmax(250px, .85fr) minmax(0, 1.7fr);
  gap: 24px;
  align-items: center;
  padding: 22px 24px;
}

.my-tech-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
}

.my-tech-avatar {
  display: grid;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, #0f766e, #22b8aa);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

.is-inactive .my-tech-avatar {
  background: #87949b;
}

.my-tech-identity > div {
  min-width: 0;
}

.my-tech-name-row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.my-tech-name-row h3 {
  overflow: hidden;
  margin: 0;
  color: #152630;
  font-size: 19px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-tech-identity p {
  margin: 5px 0 0;
  overflow-wrap: anywhere;
  color: #6b7b84;
  font-size: 13px;
}

.my-tech-identity p span {
  margin-right: 4px;
  color: #334b55;
  font-weight: 750;
}

.my-tech-status {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .02em;
}

.my-tech-status.active {
  background: #dcf6ed;
  color: #08775b;
}

.my-tech-status.inactive {
  background: #e9edef;
  color: #65737b;
}

.my-tech-facts {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(130px, .8fr) minmax(150px, .9fr) minmax(230px, 1.6fr);
  gap: 10px;
}

.my-tech-fact {
  min-width: 0;
  min-height: 78px;
  padding: 12px 14px;
  border: 1px solid #e1e8eb;
  border-radius: 11px;
  background: #f8fafb;
}

.my-tech-fact > span {
  display: block;
  margin-bottom: 4px;
  color: #74828a;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.my-tech-fact strong,
.my-tech-fact small {
  display: block;
  overflow-wrap: anywhere;
}

.my-tech-fact strong {
  color: #213740;
  font-size: 14px;
}

.my-tech-fact small {
  margin-top: 2px;
  color: #718089;
  font-size: 12px;
}

.my-tech-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.my-tech-chips span {
  max-width: 100%;
  overflow: hidden;
  padding: 3px 7px;
  border: 1px solid #cfe5e2;
  border-radius: 999px;
  background: #ecf8f6;
  color: #1f5f59;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-tech-settings {
  border-top: 1px solid #e1e8eb;
}

.live-notification-toast {
  position: fixed;
  z-index: 10000;
  right: 22px;
  bottom: 22px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: min(520px, calc(100vw - 28px));
  padding: 16px 18px;
  border: 1px solid rgba(34, 200, 190, .28);
  border-left: 5px solid #20bcb1;
  border-radius: 16px;
  background: #082934;
  box-shadow: 0 18px 55px rgba(3, 24, 31, .28);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity .2s ease, transform .2s ease;
}

.live-notification-toast.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.live-notification-toast .live-notification-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(42, 205, 194, .16);
  font-size: 22px;
}

.live-notification-toast strong,
.live-notification-toast p {
  display: block;
  margin: 0;
}

.live-notification-toast strong {
  font-size: 15px;
}

.live-notification-toast p {
  margin-top: 3px;
  color: #c2d7de;
  font-size: 13px;
  line-height: 1.4;
}

.live-notification-toast a {
  padding: 9px 11px;
  border-radius: 9px;
  background: #22bcb2;
  color: #052b34;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

@media (max-width: 680px) {
  .live-notification-toast {
    right: 14px;
    bottom: 14px;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .live-notification-toast a {
    grid-column: 1 / -1;
    text-align: center;
  }
}

.my-tech-settings > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  color: #176c65;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
  transition: background .16s ease;
}

.my-tech-settings > summary::-webkit-details-marker {
  display: none;
}

.my-tech-settings > summary:hover {
  background: #f0f8f7;
}

.my-tech-chevron {
  font-size: 22px;
  line-height: 1;
  transition: transform .18s ease;
}

.my-tech-settings[open] .my-tech-chevron {
  transform: rotate(180deg);
}

.my-tech-settings-body {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-top: 1px solid #e1e8eb;
  background: #f6f8f9;
}

.my-tech-edit-section {
  overflow: hidden;
  border: 1px solid #dde6e9;
  border-radius: 13px;
  background: #fff;
}

.my-tech-edit-head {
  padding: 16px 18px 12px;
  border-bottom: 1px solid #e7edef;
}

.my-tech-edit-head h4 {
  margin: 0;
  color: #1b3039;
  font-size: 15px;
}

.my-tech-edit-head p,
.my-tech-status-row p {
  margin: 3px 0 0;
  color: #718089;
  font-size: 12px;
}

.my-tech-setup-form,
.my-tech-percent-form,
.my-tech-password-form {
  margin: 0;
  padding: 16px 18px 18px;
}

.my-tech-field-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

.my-tech-setup-form label,
.my-tech-percent-form label,
.my-tech-password-form label {
  min-width: 0;
  color: #354b55;
  font-size: 13px;
  font-weight: 750;
}

.my-tech-setup-form label input,
.my-tech-percent-form label input,
.my-tech-password-form label input {
  display: block;
  width: 100%;
  margin-top: 6px;
  text-align: left;
  font-weight: 400;
}

.my-tech-trade-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  margin: 16px 0 0;
  padding: 13px;
  border: 1px solid #dce5e8;
  border-radius: 11px;
  background: #fbfcfc;
}

.my-tech-trade-grid legend {
  padding: 0 6px;
  color: #354b55;
  font-size: 13px;
  font-weight: 850;
}

.my-tech-trade-grid label {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 9px 10px;
  border: 1px solid #e0e8ea;
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
}

.my-tech-trade-grid label span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.my-tech-trade-grid input[type="checkbox"] {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #0f766e;
}

.my-tech-form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.my-tech-secondary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.my-tech-percent-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: end;
}

.my-tech-password-form {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.my-tech-percent-form .button,
.my-tech-password-form .button {
  min-height: 45px;
}

.my-tech-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px;
  border: 1px solid #ead7d4;
  border-radius: 13px;
  background: #fffafa;
}

.my-tech-status-row form {
  flex: 0 0 auto;
  margin: 0;
}

.my-tech-empty {
  padding: 44px 20px;
  border: 1px dashed #cddadd;
  border-radius: 14px;
  background: #fff;
  color: #718089;
  text-align: center;
}

.my-tech-empty span {
  display: block;
  margin-bottom: 8px;
  color: #0f766e;
  font-size: 32px;
}

.my-tech-empty h3 {
  margin: 0 0 4px;
  color: #253b44;
}

.my-tech-empty p {
  margin: 0;
}

@media (max-width: 1050px) {
  .my-tech-overview {
    grid-template-columns: 1fr;
  }

  .my-tech-field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .my-tech-secondary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .my-tech-section-head {
    align-items: flex-start;
    padding: 20px 18px;
  }

  .my-tech-list {
    padding: 12px;
  }

  .my-tech-overview {
    gap: 18px;
    padding: 18px;
  }

  .my-tech-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .my-tech-trade-fact {
    grid-column: 1 / -1;
  }

  .my-tech-settings > summary {
    padding: 14px 18px;
  }

  .my-tech-settings-body {
    padding: 12px;
  }

  .my-tech-field-grid,
  .my-tech-percent-form,
  .my-tech-password-form {
    grid-template-columns: 1fr;
  }

  .my-tech-form-actions .button,
  .my-tech-percent-form .button,
  .my-tech-password-form .button {
    width: 100%;
  }

  .my-tech-status-row {
    align-items: stretch;
    flex-direction: column;
  }

  .my-tech-status-row form,
  .my-tech-status-row .button {
    width: 100%;
  }
}

@media (max-width: 460px) {
  .my-tech-section-head {
    flex-direction: column;
    gap: 12px;
  }

  .my-tech-facts {
    grid-template-columns: 1fr;
  }

  .my-tech-trade-fact {
    grid-column: auto;
  }

  .my-tech-name-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .my-tech-name-row h3 {
    white-space: normal;
  }

  .my-tech-edit-head,
  .my-tech-setup-form,
  .my-tech-percent-form,
  .my-tech-password-form {
    padding-right: 13px;
    padding-left: 13px;
  }

  .my-tech-trade-grid {
    grid-template-columns: 1fr;
  }
}
