#org-admin {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  padding: 1.5rem;
  max-width: 900px;
  margin: 2rem auto;
  border-radius: 6px;
  font-family: sans-serif;
}

#org-admin h2, #org-admin h3 {
  margin-top: 0;
  color: #333;
}


.organization-forms{
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.organization-forms input {
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.organization-forms button {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  background-color: #0073aa;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.organization-forms button:hover {
  background-color: #005f8d;
}
.organization-forms label{
  font-weight: 300;
  font-size: 14px;
}
.organization-forms textarea {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  resize: vertical;
  min-height: 100px;
  height: 220px;
  font-size: 14px;
}
#org-list ul {
  padding-left: 1.2rem;
}

#org-list li {
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

#user-admin {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  padding: 1.5rem;
  max-width: 900px;
  margin: 2rem auto;
  border-radius: 6px;
  font-family: sans-serif;
}

#user-admin h2, #user-admin h3 {
  margin-top: 0;
  color: #333;
}

#user-form,
#bulk-user-entry{
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

#user-form input,
#user-form select {
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-weight: normal;
}
.form-button-row {
  display: flex;
  gap: 1rem; /* ボタン間の余白 */
  margin-top: auto;
}
.submit-user-form-btn{
  width: 70%;
}
.clear-user-form-btn{
  width: 30%;
}
#user-form button,
#bulk-user-submit-btn {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  background-color: #0073aa;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
#bulk-user-submit-btn{
  margin-top: 1rem;
  width: 100%;
}
#user-form button:hover,
#bulk-user-submit-btn:hover {
  background-color: #005f8d;
}

#user-list ul {
  padding-left: 1.2rem;
}

#user-list li {
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}


#user-form {
  width: 300px;
}

.user-table {
  font-size: 14px;  
  table-layout: fixed;
  width: 100%;
}


.user-table td,
.user-table th {
  font-size: 14px;
}
.user-table td:nth-child(5),
.user-table td:nth-child(6){
  text-align: center;
  vertical-align: middle;
}


.org-toggle {
  cursor: pointer;
  display: inline-block;
  padding-left: 1rem;
  position: relative;
}

.org-toggle::before {
  content: '▶';
  
  position: absolute;
  left: 0;
  transition: transform 0.2s ease;
}

.org-toggle.expanded::before {
  transform: rotate(90deg);
}

.org-icon {
  width: 1rem;
  display: inline-block;
  cursor: default;
}

.toggle-icon {
  cursor: pointer;
  color: #333;
  font-weight: bold;
}

.dot-icon {
  color: #999;
  cursor: default;
}

.org-delete {
  color: #d33;
  margin-left: 0.5rem;
  cursor: pointer;
  font-weight: bold;
}

.org-delete:hover {
  color: #777;
  text-decoration: underline;
}

.org-add {
  color: #007700;
  margin-left: 0.3rem;
  cursor: pointer;
  font-weight: bold;
}

.org-add:hover {
  color: #777;
  text-decoration: underline;
}

.add-form {
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: #eef9f0;
  border: 1px solid #99c299;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  max-width: 300px;
}

.add-form input {
  padding: 0.3rem;
  font-size: 0.9rem;
}

.add-form button {
  padding: 0.3rem 0.5rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.org-actions {
  display: none;
  margin-left: 0.5rem;
}

li:hover > .org-actions {
  display: inline;
}

.org-delete, .org-add {
  margin-left: 0.3rem;
  cursor: pointer;
  font-weight: bold;
  color: #999;
}

.org-entry:hover .org-actions {
  display: inline;
}

.org-entry {
  display: inline-block;
  padding: 2px 4px;
}

.org-label {
  cursor: default;
}

#user-form label {
  font-size: 14px;
}

.org-label.drag-target {
  font-weight: bold;
  background-color: #eef;
  border-radius: 4px;
  padding: 2px 4px;
  cursor: copy;
}


.org-tree-display {
  padding: 6px 10px;
  border: 1px solid #ccc;
  background-color: #fafafa;
  cursor: pointer;
  display: inline-block;
  border-radius: 4px;
  font-size: 16px;
}

.org-tree-popup {
  position: absolute;
  background-color: white;
  border: 1px solid #888;
  padding: 10px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 2000;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
#org-tree-container ul {
  list-style-type: none;
  padding-left: 1em; 
}

#org-tree-container li {
  margin: 4px 0;
}

#org-tree-popup {
  display: none;
  max-width: 500px;
  max-height: 80vh;
  background: #fff;
  border: 1px solid #ccc;
  padding: 1em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  position: fixed;
  top: 10vh;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  flex-direction: column;
  border-radius: 6px;
}

#org-tree-container {
  overflow-y: auto;
  max-height: 55vh;
  margin-bottom: 1em;
  border: 1px solid #ddd;
  padding: 0.5em;
}

#org-tree-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 1em;
}

.delete-user-btn {
  background-color: #e74c3c;
  color: white;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 4px;
}

.display-none {
  display: none;
}

.sort-icons {
  display: inline-block;
  margin-left: 5px;
  font-size: 0.5em;
  line-height: 1;
  vertical-align: middle;
}
.sort-up,
.sort-down {
  display: block;
  text-align: center;
  color: #ccc;
}
.sorted-asc .sort-up {
  color: black;
}
.sorted-desc .sort-down {
  color: black;
}


#bulk-user-textarea {
  width: 100%;
  height: 220px;
  resize: none;
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 14px;
}