/* Admin LSPD — complète le thème du site */

.page_content_wrap .content {
  padding: 3rem 0 4rem;
}

/* Formulaire connexion — style Ultimate Member comme le site */
.lspd-admin-login-wrap {
  display: flex;
  justify-content: center;
  padding: 1rem 0 2rem;
}

.lspd-admin-login-wrap .um.um-login {
  width: 100%;
}

.lspd-admin-login-wrap .um-col-alt .um-left.um-half {
  width: 100%;
  float: none;
}

.lspd-admin-login-wrap .um-col-alt .um-right.um-half {
  display: none;
}

.lspd-admin-login-wrap .um-col-alt-b {
  display: none;
}

.lspd-admin-login-wrap .um-button#um-submit-btn {
  width: 100%;
  cursor: pointer;
}

.lspd-admin-error {
  max-width: 450px;
  margin: 0 auto 1.25rem;
  padding: 0.85rem 1rem;
  background: rgba(207, 46, 46, 0.12);
  border: 1px solid #cf2e2e;
  color: #cf2e2e;
  font-family: var(--theme-font-p_font-family, "Work Sans", sans-serif);
  border-radius: 2px;
}

.lspd-admin-success {
  max-width: 520px;
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  background: rgba(46, 125, 50, 0.12);
  border: 1px solid #2e7d32;
  color: #2e7d32;
  font-family: var(--theme-font-p_font-family, "Work Sans", sans-serif);
  border-radius: 2px;
}

/* Panneau organigramme */
.lspd-admin-panel {
  max-width: 1100px;
  margin: 0 auto;
  font-family: var(--theme-font-p_font-family, "Work Sans", sans-serif);
}

.lspd-admin-panel h2 {
  font-family: var(--theme-font-h2_font-family, "Bebas Neue", cursive);
  font-size: 2rem;
  letter-spacing: 0.04em;
  color: #06335a;
  margin: 0 0 0.35rem;
  text-transform: uppercase;
}

.lspd-admin-panel .subtitle {
  color: #7a7a7a;
  margin: 0 0 1.75rem;
}

.lspd-admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.lspd-admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.35rem;
  font-family: var(--theme-font-button_font-family, "Bebas Neue", cursive);
  font-size: 0.85rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.lspd-admin-btn-primary {
  background: #17a3eb;
  color: #fff;
}

.lspd-admin-btn-primary:hover {
  background: #06335a;
}

.lspd-admin-btn-secondary {
  background: transparent;
  color: #06335a;
  border: 2px solid #06335a;
}

.lspd-admin-btn-secondary:hover {
  background: #06335a;
  color: #fff;
}

.lspd-admin-btn-danger {
  background: transparent;
  color: #cf2e2e;
  border: 1px solid #cf2e2e;
}

.lspd-admin-btn-danger:hover {
  background: #cf2e2e;
  color: #fff;
}

.lspd-admin-btn-sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.75rem;
}

.lspd-admin-alert {
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.lspd-admin-alert-success {
  background: rgba(23, 163, 235, 0.12);
  border: 1px solid #17a3eb;
  color: #06335a;
}

.lspd-admin-alert-error {
  background: rgba(207, 46, 46, 0.12);
  border: 1px solid #cf2e2e;
  color: #cf2e2e;
}

.member-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.member-item {
  background: #faf8f8;
  border: 1px solid #d8d8d8;
  padding: 1.25rem;
}

.member-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #d8d8d8;
}

.member-item-actions {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.member-item-header span {
  font-family: var(--theme-font-h6_font-family, "Bebas Neue", cursive);
  font-weight: 400;
  color: #06335a;
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 0.03em;
}

.member-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 700px) {
  .member-fields {
    grid-template-columns: 1fr;
  }
}

.lspd-admin-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  font-family: var(--theme-font-h6_font-family, "Bebas Neue", cursive);
  font-weight: 400;
  text-transform: uppercase;
  color: #54595f;
  letter-spacing: 0.03em;
}

.lspd-admin-field input[type="text"],
.lspd-admin-field select {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid #d8d8d8;
  background: #fff;
  font-family: inherit;
  font-size: 0.95rem;
}

/* Select grade: style plus explicite et cliquable */
.lspd-admin-field .field-grade {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  min-height: 44px;
  cursor: pointer;
  color: #1f2a36 !important;
  -webkit-text-fill-color: #1f2a36;
  font-weight: 500;
  padding-right: 2.1rem;
  border-color: #bfc7d1;
  background-color: #fff;
  background-image: linear-gradient(45deg, transparent 50%, #7a8796 50%), linear-gradient(135deg, #7a8796 50%, transparent 50%);
  background-position: calc(100% - 16px) calc(50% - 3px), calc(100% - 10px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.lspd-admin-field .field-grade:hover {
  border-color: #17a3eb;
}

.lspd-admin-field .field-grade option {
  color: #1f2a36 !important;
  background: #ffffff;
}

.lspd-admin-field input:focus,
.lspd-admin-field select:focus {
  outline: none;
  border-color: #17a3eb;
}

.upload-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.member-preview {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  align-items: center;
}

.member-preview img {
  background: #fff;
  border: 1px solid #d8d8d8;
  padding: 2px;
}

.member-preview .badge-preview {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.member-preview .photo-preview {
  width: 80px;
  height: 87px;
  object-fit: cover;
  object-position: center top;
}

.field-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: #7a7a7a;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.photo-preview--empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 87px;
  background: #eee;
  color: #888;
  font-size: 0.7rem;
  text-align: center;
  padding: 4px;
}


.hidden {
  display: none !important;
}

/* Navigation admin */
.lspd-admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #d8d8d8;
}

.lspd-admin-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  font-family: var(--theme-font-h6_font-family, "Bebas Neue", cursive);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: #06335a;
  border: 2px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.lspd-admin-nav a:hover {
  border-color: #06335a;
}

.lspd-admin-nav a.active {
  background: #06335a;
  color: #fff;
}

/* Cartes tableau de bord */
.lspd-admin-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.lspd-admin-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  background: #faf8f8;
  border: 1px solid #d8d8d8;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.lspd-admin-card:hover {
  border-color: #17a3eb;
  box-shadow: 0 4px 12px rgba(6, 51, 90, 0.08);
}

.lspd-admin-card-icon {
  font-size: 1.75rem;
  line-height: 1;
}

.lspd-admin-card-title {
  font-family: var(--theme-font-h6_font-family, "Bebas Neue", cursive);
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #06335a;
}

.lspd-admin-card-desc {
  font-size: 0.9rem;
  color: #7a7a7a;
  line-height: 1.45;
}

/* Formulaire poste */
.lspd-admin-form {
  display: grid;
  gap: 1rem;
  max-width: 520px;
  margin-bottom: 2rem;
}

.lspd-admin-preview h3 {
  font-family: var(--theme-font-h6_font-family, "Bebas Neue", cursive);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #54595f;
  margin: 0 0 0.75rem;
}

.lspd-admin-preview-box {
  max-width: 320px;
  padding: 1.25rem;
  background: #06335a;
  color: #fff;
}

.lspd-admin-preview-box h6 {
  font-family: var(--theme-font-h6_font-family, "Bebas Neue", cursive);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 0.75rem;
  color: #fff;
}

.lspd-admin-preview-box p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

/* Images — panneau complet */
.lspd-admin-panel--images {
  max-width: 1200px;
}

.lspd-images-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.lspd-image-search {
  flex: 1;
  min-width: 220px;
  max-width: 400px;
  padding: 0.65rem 0.85rem;
  border: 1px solid #d8d8d8;
  font-family: inherit;
  font-size: 0.95rem;
}

.lspd-admin-toolbar--inline {
  margin-bottom: 0;
}

.lspd-image-group {
  margin-bottom: 2rem;
}

.lspd-image-group-title {
  font-family: var(--theme-font-h6_font-family, "Bebas Neue", cursive);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #06335a;
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #17a3eb;
}

.lspd-image-group-title span {
  color: #7a7a7a;
  font-family: var(--theme-font-p_font-family, "Work Sans", sans-serif);
  font-size: 0.85rem;
  text-transform: none;
  letter-spacing: 0;
}

.lspd-image-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.lspd-images-empty {
  color: #7a7a7a;
  padding: 2rem;
  text-align: center;
}

.lspd-image-card {
  background: #faf8f8;
  border: 1px solid #d8d8d8;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.lspd-image-card-title {
  font-family: var(--theme-font-h6_font-family, "Bebas Neue", cursive);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #06335a;
}

.lspd-image-card-preview {
  aspect-ratio: 16 / 10;
  background: #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lspd-image-card-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.field-path-readonly {
  margin: 0 0 0.75rem;
  padding: 0.5rem 0.65rem;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  font-size: 0.8rem;
  word-break: break-all;
  color: #555;
}

.lspd-image-card-empty {
  font-size: 0.8rem;
  color: #888;
}

.lspd-upload-label {
  cursor: pointer;
  margin: 0;
}
