/* Panel-profile specific styles */
.ip-profile {
  background: var(--ip-active);
  padding: 18px;
  margin-bottom: 16px;
  border-radius: 10px;
  border: 1px solid #45546d;
  text-align: center;
  color: #fff;
}

.ip-profile img.ip-avatar {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  border: 4px solid var(--ip-hover);
  display: block;
  margin: 0 auto 10px;
  object-fit: cover;
}

.ip-profile--large {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px;
}

.ip-card--profile {
  padding: 18px;
}

.ip-profile-cards {
  display: flex !important;
  gap: 16px;
  align-items: flex-start;
}

.ip-card--main {
  flex: 1 1 420px;
  min-width: 300px;
}

.ip-card--extra {
  flex: 1 1 420px;
  min-width: 300px;
}

.ip-row {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

/* Styles for disabled fields */
.ip-input.disabled-field,
input[disabled],
select[disabled],
textarea[disabled],
input[readonly],
select[readonly],
textarea[readonly] {
  background-color: #f8f9fa !important;
  color: #6c757d !important;
  cursor: not-allowed;
  opacity: 0.8;
}

.ip-card--readonly-message {
  background-color: #e9ecef;
  padding: 15px;
  border-radius: 6px;
  text-align: center;
  margin-top: 15px;
  border: 1px solid #dee2e6;
}

.ip-card--readonly-message p {
  margin: 0;
  color: #495057;
  font-weight: 500;
}

.ip-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ip-group label {
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--ip-muted);
}

.ip-input {
  padding: 8px 10px;
  border: 1px solid #e6e6e6;
  border-radius: 6px;
  background: #fff;
}

.ip-input[type="date"] {
  padding: 8px;
}

.ip-input textarea {
  resize: vertical;
}

.ip-title {
  background-color: var(--ip-bg);
  padding: 8px 0;
  border-radius: 6px;
  font-size: 17px;
  margin-bottom: 16px;
  color: var(--ip-primary);
  font-weight: bold;
  border-right: solid 3px;
  padding-right: 4px;
}

input,
select,
textarea {
  border: 1px solid #e0e0e0 !important;
  border-radius: 6px !important;
}

.ip-panel--profile {
  flex: 1 1 auto;
  width: auto;
}

.ip-panel--profile .ip-card--profile {
  width: 100%;
}

@media (max-width: 600px) {
  /* Mobile: stack fields vertically */
  .ip-row {
    flex-direction: column;
  }
  .ip-group {
    flex: 1 1 100%;
    width: 100%;
  }
  .ip-group[style] {
    flex: 1 1 100%;
  }
  .ip-input {
    width: 100%;
    box-sizing: border-box;
  }
  .ip-profile-cards {
    flex-direction: column;
  }
}

@media (max-width: 1000px) {
  .ip-profile-cards {
    flex-direction: column;
    gap: 12px;
  }
}
