/* Ρυθμίσεις — Fluent / Mica (Stitch servise7 export) */

.settings-stitch-hero {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  padding: 1.35rem 1.5rem 1.5rem;
  margin-bottom: 1.25rem;
  background: linear-gradient(
    118deg,
    rgb(0, 95, 170) 0%,
    rgb(8, 112, 148) 42%,
    rgb(37, 99, 235) 100%
  );
  color: #fff;
  box-shadow: 0 14px 44px -14px rgba(0, 95, 170, 0.42);
}
.settings-stitch-hero::after {
  content: "";
  position: absolute;
  right: -12%;
  top: -40%;
  width: 46%;
  height: 160%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14) 0%, transparent 58%);
  pointer-events: none;
}
.settings-stitch-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}
.settings-stitch-hero h2 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.settings-stitch-hero p {
  margin: 0.4rem 0 0;
  font-size: 0.875rem;
  opacity: 0.92;
  max-width: 32rem;
}
.settings-stitch-hero-kicker {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  margin: 0 0 0.25rem;
}
.settings-stitch-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 0.75rem;
  font-weight: 700;
}

.settings-stitch-layout {
  display: flex;
  flex-direction: column;
  border-radius: 1rem;
  border: 1px solid rgba(192, 199, 212, 0.35);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 4px 24px -6px rgba(24, 28, 34, 0.08);
  overflow: hidden;
  min-height: min(70vh, 52rem);
}
@media (min-width: 1024px) {
  .settings-stitch-layout {
    flex-direction: row;
    align-items: stretch;
  }
}

.settings-stitch-rail {
  flex-shrink: 0;
  border-bottom: 1px solid rgba(192, 199, 212, 0.35);
  background: rgba(241, 243, 252, 0.65);
  padding: 1rem 1rem 1.25rem;
}
@media (min-width: 1024px) {
  .settings-stitch-rail {
    width: 15.5rem;
    border-bottom: none;
    border-right: 1px solid rgba(192, 199, 212, 0.35);
    padding: 1.25rem 0.75rem 1.5rem 1rem;
  }
}

.settings-stitch-rail-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(113, 119, 131);
  padding: 0 0.5rem 0.75rem;
}

.settings-stitch-nav {
  display: flex;
  flex-direction: row;
  gap: 0.35rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
}
@media (min-width: 1024px) {
  .settings-stitch-nav {
    flex-direction: column;
    overflow-x: visible;
    padding-bottom: 0;
  }
}

.settings-stitch-nav button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: max-content;
  min-width: 0;
  text-align: left;
  padding: 0.65rem 0.75rem;
  border: none;
  border-radius: 0.5rem;
  background: transparent;
  color: rgb(64, 71, 82);
  font-size: 0.875rem;
  line-height: 1.25;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease;
  white-space: nowrap;
}
.settings-stitch-nav a.settings-stitch-nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: max-content;
  min-width: 0;
  text-align: left;
  padding: 0.65rem 0.75rem;
  border: none;
  border-radius: 0.5rem;
  background: transparent;
  color: rgb(64, 71, 82);
  font-size: 0.875rem;
  line-height: 1.25;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease;
  white-space: nowrap;
  text-decoration: none;
}
@media (min-width: 1024px) {
  .settings-stitch-nav button,
  .settings-stitch-nav a.settings-stitch-nav-link {
    width: 100%;
    white-space: normal;
  }
}
.settings-stitch-nav button .material-symbols-outlined,
.settings-stitch-nav a.settings-stitch-nav-link .material-symbols-outlined {
  font-size: 1.25rem;
  opacity: 0.85;
  flex-shrink: 0;
}
.settings-stitch-nav button:hover,
.settings-stitch-nav a.settings-stitch-nav-link:hover {
  background: rgba(230, 232, 240, 0.9);
  color: rgb(24, 28, 34);
}
.settings-stitch-nav button:active {
  transform: scale(0.98);
}
.settings-stitch-nav button.is-active,
.settings-stitch-nav a.settings-stitch-nav-link.is-active {
  position: relative;
  background: rgb(224, 226, 234);
  color: rgb(0, 95, 170);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(0, 95, 170, 0.12);
}
.settings-stitch-nav button.is-active::before,
.settings-stitch-nav a.settings-stitch-nav-link.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  border-radius: 9999px;
  background: rgb(0, 95, 170);
}
@media (max-width: 1023px) {
  .settings-stitch-nav button.is-active::before,
  .settings-stitch-nav a.settings-stitch-nav-link.is-active::before {
    display: none;
  }
}

.settings-stitch-main {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  max-height: min(70vh, 52rem);
  padding: 1.25rem 1.25rem 1.75rem;
}
@media (min-width: 1024px) {
  .settings-stitch-main {
    padding: 1.5rem 1.75rem 2rem;
    max-height: min(78vh, 56rem);
  }
}

.settings-stitch-panel[hidden] {
  display: none !important;
}

.settings-stitch-section-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}
.settings-stitch-section-head .material-symbols-outlined {
  font-size: 1.75rem;
  color: rgb(0, 95, 170);
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
}
.settings-stitch-section-head h3 {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: rgb(24, 28, 34);
}

.settings-stitch-card {
  border-radius: 0.75rem;
  border: 1px solid rgba(192, 199, 212, 0.45);
  background: rgb(255, 255, 255);
  box-shadow: 0 2px 12px -4px rgba(24, 28, 34, 0.06);
  padding: 1.35rem 1.35rem 1.5rem;
  margin-bottom: 1.25rem;
}
.settings-stitch-card:last-child {
  margin-bottom: 0;
}

.settings-stitch-card-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: rgb(64, 71, 82);
  margin: 0 0 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(192, 199, 212, 0.35);
}

/* Υπογράμμιση πεδίων όπως στο Stitch mock */
.settings-underline-field label {
  font-size: 0.75rem;
  font-weight: 700;
  color: rgb(64, 71, 82);
  display: block;
  margin-bottom: 0.2rem;
}
.settings-underline-field input,
.settings-underline-field select,
.settings-underline-field textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid rgba(192, 199, 212, 0.9);
  border-radius: 0;
  background: transparent;
  padding: 0.5rem 0;
  font-size: 1rem;
  line-height: 1.5;
  color: rgb(24, 28, 34);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.settings-underline-field input:focus,
.settings-underline-field select:focus,
.settings-underline-field textarea:focus {
  border-bottom-width: 2px;
  border-bottom-color: rgb(0, 95, 170);
  box-shadow: none;
}

.settings-stitch-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
  padding-top: 1.25rem;
  margin-top: 0.5rem;
  border-top: 1px solid rgba(192, 199, 212, 0.35);
}

.settings-select {
  width: 100%;
  border: none;
  border-bottom: 1px solid rgba(192, 199, 212, 0.9);
  background: transparent;
  padding: 0.5rem 0;
  font-size: 1rem;
  color: rgb(24, 28, 34);
  outline: none;
}

.settings-viber-toggle {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(192, 199, 212, 0.45);
  background: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  font-size: 0.875rem;
  color: rgb(64, 71, 82);
}

.settings-viber-toggle input {
  margin-top: 0.15rem;
  accent-color: rgb(0, 95, 170);
}

.settings-viber-textarea {
  width: 100%;
  min-height: 6rem;
  border: 1px solid rgba(192, 199, 212, 0.55);
  border-radius: 0.65rem;
  padding: 0.65rem 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  font-family: ui-monospace, Consolas, monospace;
  resize: vertical;
  background: rgba(255, 255, 255, 0.85);
}

.settings-viber-mini-btn {
  border: 1px solid rgba(0, 95, 170, 0.25);
  background: rgba(0, 120, 212, 0.08);
  color: rgb(0, 74, 140);
  border-radius: 0.5rem;
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.settings-viber-mini-btn:hover {
  background: rgba(0, 120, 212, 0.14);
}

.settings-viber-preview {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.65rem;
  background: rgb(24, 28, 34);
  color: #e8edf5;
  font-size: 0.8125rem;
  line-height: 1.45;
  white-space: pre-wrap;
  max-height: 16rem;
  overflow: auto;
}

.settings-viber-log {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.settings-viber-log li {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 0.5rem 0.75rem;
  align-items: baseline;
  padding: 0.5rem 0.65rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(192, 199, 212, 0.35);
  font-size: 0.75rem;
}

.settings-viber-log-status {
  font-weight: 800;
  text-transform: uppercase;
  color: rgb(0, 95, 170);
}

.settings-viber-log-preview {
  color: rgb(64, 71, 82);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-viber-log-time {
  color: rgb(107, 114, 128);
  font-size: 0.6875rem;
}

.settings-stitch-table-wrap {
  border-radius: 0.75rem;
  border: 1px solid rgba(192, 199, 212, 0.35);
  overflow: hidden;
  background: rgb(255, 255, 255);
}

#integration-aade_lookup {
  scroll-margin-top: 1.25rem;
}

.tenant-user-form-status {
  padding: 0.65rem 0.85rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.4;
}
.tenant-user-form-status--pending {
  background: rgba(0, 95, 170, 0.08);
  color: rgb(0, 95, 170);
  border: 1px solid rgba(0, 95, 170, 0.2);
}
.tenant-user-form-status--ok {
  background: rgba(22, 163, 74, 0.1);
  color: rgb(21, 128, 61);
  border: 1px solid rgba(22, 163, 74, 0.25);
}
.tenant-user-form-status--error {
  background: rgba(220, 38, 38, 0.08);
  color: rgb(185, 28, 28);
  border: 1px solid rgba(220, 38, 38, 0.22);
}

/* Νέος χρήστης — πλήρης σελίδα */
.settings-user-create-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  padding: 1.25rem;
}
@media (min-width: 1024px) {
  .settings-user-create-grid {
    grid-template-columns: minmax(0, 1.65fr) minmax(16rem, 1fr);
    gap: 1.5rem;
    align-items: start;
  }
}
.settings-user-create-card {
  background: rgb(255, 255, 255);
  border: 1px solid rgba(192, 199, 212, 0.4);
  border-radius: 1rem;
  padding: 1.35rem 1.5rem 1.5rem;
  box-shadow: 0 8px 32px -12px rgba(24, 28, 34, 0.1);
}
.settings-user-create-section-head {
  margin-bottom: 1rem;
}
.settings-user-create-section-head--spaced {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(192, 199, 212, 0.28);
}
.settings-user-create-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .settings-user-create-fields {
    grid-template-columns: 1fr 1fr;
  }
}
.settings-user-create-field--full {
  grid-column: 1 / -1;
}
.settings-user-create-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: rgb(24, 28, 34);
  margin-bottom: 0.4rem;
}
.settings-user-create-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.settings-user-create-input-icon {
  position: absolute;
  left: 0.85rem;
  font-size: 1.125rem;
  color: rgb(107, 114, 128);
  pointer-events: none;
}
.settings-user-create-input {
  width: 100%;
  border: 1px solid rgba(192, 199, 212, 0.45);
  border-radius: 0.65rem;
  padding: 0.72rem 0.9rem;
  font-size: 0.9375rem;
  background: rgb(248, 250, 252);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.settings-user-create-input--icon {
  padding-left: 2.65rem;
}
.settings-user-create-input--password {
  padding-right: 2.75rem;
}
.settings-user-create-input:focus {
  outline: none;
  border-color: rgb(0, 95, 170);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 95, 170, 0.12);
}
.settings-user-create-password-toggle {
  position: absolute;
  right: 0.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: rgb(107, 114, 128);
  cursor: pointer;
}
.settings-user-create-password-toggle:hover {
  background: rgba(0, 95, 170, 0.08);
  color: rgb(0, 95, 170);
}
.settings-user-create-hint {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: rgb(107, 114, 128);
}
.settings-user-create-alert {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.65rem;
  font-size: 0.875rem;
  font-weight: 600;
}
.settings-user-create-alert--pending {
  background: rgb(239, 246, 255);
  color: rgb(29, 78, 216);
  border: 1px solid rgb(191, 219, 254);
}
.settings-user-create-alert--error {
  background: rgb(254, 242, 242);
  color: rgb(185, 28, 28);
  border: 1px solid rgb(254, 202, 202);
}
.settings-user-create-alert--ok {
  background: rgb(240, 253, 244);
  color: rgb(21, 128, 61);
  border: 1px solid rgb(187, 247, 208);
}
.settings-user-role-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}
@media (min-width: 640px) {
  .settings-user-role-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.settings-user-role-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  text-align: left;
  padding: 0.9rem 1rem;
  border-radius: 0.75rem;
  border: 2px solid rgba(192, 199, 212, 0.45);
  background: rgb(248, 250, 252);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.settings-user-role-card:hover {
  border-color: rgba(0, 95, 170, 0.35);
  background: #fff;
}
.settings-user-role-card.is-selected {
  border-color: rgb(0, 95, 170);
  background: rgba(0, 95, 170, 0.06);
  box-shadow: 0 0 0 1px rgba(0, 95, 170, 0.15);
}
.settings-user-role-card-icon {
  font-size: 1.35rem;
  color: rgb(0, 95, 170);
}
.settings-user-role-card-title {
  font-size: 0.875rem;
  font-weight: 800;
  color: rgb(24, 28, 34);
}
.settings-user-role-card-desc {
  font-size: 0.6875rem;
  line-height: 1.35;
  color: rgb(107, 114, 128);
}
.settings-user-create-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(192, 199, 212, 0.28);
}
.settings-user-create-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.72rem 1.35rem;
  border: 0;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgb(0, 95, 170), rgb(37, 99, 235));
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px -8px rgba(0, 95, 170, 0.55);
  transition: transform 0.12s, box-shadow 0.12s;
}
.settings-user-create-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -8px rgba(0, 95, 170, 0.6);
}
.settings-user-create-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}
.settings-user-create-cancel {
  display: inline-flex;
  align-items: center;
  padding: 0.72rem 1.1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(192, 199, 212, 0.55);
  color: rgb(64, 71, 82);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  background: #fff;
}
.settings-user-create-cancel:hover {
  background: rgb(248, 250, 252);
}
.settings-user-create-aside {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.settings-user-create-tip {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-radius: 0.85rem;
  background: rgba(0, 95, 170, 0.06);
  border: 1px solid rgba(0, 95, 170, 0.14);
}
.settings-user-create-tip--muted {
  background: rgb(248, 250, 252);
  border-color: rgba(192, 199, 212, 0.4);
}
.settings-user-create-tip-icon {
  font-size: 1.35rem;
  color: rgb(0, 95, 170);
  flex-shrink: 0;
}
.settings-user-create-tip--muted .settings-user-create-tip-icon {
  color: rgb(107, 114, 128);
}
.settings-user-create-tip-title {
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  font-weight: 800;
  color: rgb(24, 28, 34);
}
.settings-user-create-tip-text {
  font-size: 0.75rem;
  color: rgb(107, 114, 128);
  line-height: 1.45;
}
.settings-user-create-tip-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.75rem;
  color: rgb(64, 71, 82);
  line-height: 1.5;
}
.settings-user-create-tip-list li + li {
  margin-top: 0.35rem;
}
