/* ユニット系レイアウト */
main.unit_main {
  margin-top: 27px; 
}

.unit_main h2 {
  font-size: 20px;
  font-weight: bold;
  border-left: 5px solid var(--unit-color);
  padding-left: 12px;
  margin: 0 0 10px;
  color: #333;
}

.unit_main p {
  font-size: 14px;
  line-height: 1.7;
  margin: 10px 0 20px;
  color: #444;
}

.unit_main table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 20px 0 20px 0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}


.unit_main th, .unit_main td {
  border: none;
  padding: 12px 16px;
  text-align: left;
}

.unit_main th {
  background-color: var(--unit-color);
  color: #fff;
  font-weight: bold;
}

.unit_main tr:nth-child(even) {
  background-color: #f9f9f9;
}

.unit_main tr:hover {
  background-color: #f1f1f1;
}
/* .detail-content 用スタイル */
.detail-content {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}

.detail-content h3 {
    font-size: 18px;
    margin-bottom: 1rem;
    color: var(--unit-color);
    border-bottom: 2px solid var(--unit-color);
    padding-bottom: 0.5rem;
}

.detail-content p {
    margin-bottom: 1rem;
    padding: 0.4rem 0.6rem;
    background-color: #f9f9f9;
    border-left: 4px solid var(--unit-color);
    border-radius: 4px;
}


#network-detail {
    background-color: #fefefe;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 13px;
    margin-top: 1.5rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}
#network-detail h3 {
    margin-top: 0;
    font-size: 17px;
    color: var(--unit-color);
    font-weight: bold;
}

#network-detail p {
    margin-bottom: 0.8rem;
}
/* .detail-content内のformのはみ出し防止 */
.detail-content form {
    width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
}

form input[type="text"],
form input[type="email"],
form input[type="date"],
form textarea {
    width: 94%;
    padding: 0.5rem;
    margin-top: 0.2rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}
/* 数値入力フィールドのスタイル調整 */
input[type="number"] {
  width: 100%;
  padding: 8px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}
form select {
  width: 94%;
  padding: 0.5rem;
  margin-top: 0.2rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  background-color: #fff;
}



form button[type="submit"]:hover {
    background-color: var(--unit-color, #a85b89);
}


.fixed-new-button {
  position: absolute;
  top: 110px;
  right: 40px;
  z-index: 10;
}

/* メニューリンクの統一スタイル */
.menu-link {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}



#member-search-results {
  overflow-y: visible;
  max-height: none;
  margin-bottom: 10px;
  min-height: 50px;
}
    .search-result {
      cursor: pointer;
      padding: 4px;
    }

    #member-search-results {
  overflow-y: visible;
  max-height: none;
}
.edit-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 500px;
}
/* 検索結果表示用スタイル */
.member-search-results-active {
  background: #fff;
  min-height: 50px;
}

section.unit-flex-group {
    display: flex;
    gap: 20px;
}

.unit-flex-group{
  display: flex; flex-direction: row; gap: 24px; align-items: stretch;
}
.unit-flex-left{
flex: 2;
}
.unit-flex-right{
flex: 1;
}
.flex_box{
 flex: 1; height: 100%; 
 background: white; 
 padding: 24px; 
 border-radius: 8px; 
 box-shadow: 0 0 4px rgba(0,0,0,0.1);
 margin: 20px 0 20px 0;
}
.flex_box{
 flex: 1; height: 100%; 
 background: white; 
 padding: 24px; 
 border-radius: 8px; 
 box-shadow: 0 0 4px rgba(0,0,0,0.1);
 margin: 20px 0 20px 0;
}


/* 新規ユーティリティクラス */
.id-label {
  font-size: 14px;
  color: #666;
}

.form-row {
  display: flex;
  gap: 12px;
}

.form-col {
  flex: 1;
}

.form-fieldset {
  margin-bottom: 12px;
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 4px;
}

.team-checkbox {
  display: inline-block;
  margin-right: 10px;
  font-weight: normal;
}

.photo-preview {
  margin-top: 10px;
}

.photo-image {
  max-width: 120px;
  border-radius: 4px;
}

.submit-btn {
  margin-bottom: 40px;
}
/* Responsive styles for detail rows */
#details-list {
  width: 100%;
  margin-bottom: 8px;
}
.detail-row {
  display: block;
  margin-bottom: 12px;
}

.detail-item-name-select {
  width: 100%;
}

.detail-line {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
}

.detail-line label {
  display: flex;
  flex-direction: column;
}

.detail-line input[type="number"] {
  width: 80px;
}

.detail-line input.quantity {
  width: 80px;
}

.detail-line input.unit {
  width: 80px!important;
  margin-top: 0px;
}

.detail-subtotal-line {
  margin-top: 22px;
}

.mark-pill {
  display: inline-block;
  padding: 2px 6px;
  margin: 1px;
  border-radius: 4px;
  font-size: 90%;
  color: #fff;
}