
/* ======================
    一覧囲い
====================== */
.list-box {
    max-width: 1200px;
    /* margin: 10px auto 60px; */
    margin: 10px auto 30px;
    padding: 0 16px;
    padding-top: 80px;
}

@media (max-width: 960px) {
    .list-box { padding-top: 70px; }
}

.main-heading {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

/* ======================
    検索エリア
====================== */
.search-box {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 24px;
}
.search-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.search-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 160px;
}
.search-group label :not([type="checkbox"], [type="radio"]){
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #555;
}
.search-group input :not([type="checkbox"], [type="radio"]){
    height: 40px;
    padding: 0 12px;
    /* border-radius: 6px;
    border: 1px solid #ddd; */
    font-size: 14px;
    box-sizing: border-box;
}
.search-group input:focus :not([type="checkbox"], [type="radio"]){
    outline: none;
    border-color: #00aacc;
    box-shadow: 0 0 0 3px rgba(0,170,204,0.15);
}
.search-btn-area {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}





/* ======================
    一覧表示
====================== */
.table-area {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.list-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 800px;
}
.list-table thead th {
    background: #005999;
    color: #fff;
    padding: 7px 3px;
    text-align: left;
    white-space: nowrap;
    vertical-align: middle;
}
.list-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background 0.15s;
}
.list-table tbody tr:hover {
    background: #e8f4fb;
}
.list-table tbody td {
    padding: 5px 3px;
    vertical-align: middle;
    white-space: nowrap;
}

/* ======================
    ページネーション
====================== */
.pagination-area {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}
.result-count {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}


/* ======================
    契約団体選択
====================== */
.organization-select-area {
    display: flex;
    align-items: center;
    gap: 8px;
}
.organization-select-area .selected-name {
    flex: 1;
    height: 40px;
    padding: 0 12px;
    /* border-radius: 6px;
    border: 1px solid #ddd; */
    font-size: 14px;
    background: #fff;
    display: flex;
    align-items: center;
    color: #333;
    min-width: 0;
}
.organization-select-area .selected-name.placeholder {
    color: #aaa;
}

.date-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #f1f5f9;
    border-radius: 999px;
    font-size: 13px;
}

.organization-select-area {
    display: flex;
    align-items: center;
    gap: 8px;
}
.organization-select-area .selected-name {
    flex: 1;
    height: 40px;
    padding: 0 12px;
    /* border-radius: 6px;
    border: 1px solid #ddd; */
    font-size: 14px;
    background: #fff;
    display: flex;
    align-items: center;
    color: #333;
    min-width: 0;
}
.organization-select-area .selected-name.placeholder {
    color: #aaa;
}


.selected-org-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.selected-org-box {
    position: relative;
    flex: 1; /* ← 横に広がる */
}

.selected-name {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 6px 30px 6px 10px; /* ←右に余白（×用） */
    background-color: #fff;
    min-height: 38px;
    display: flex;
    align-items: center;
    
}

.selected-name.placeholder {
    color: #999;
}

#organization_search_clear_button {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    font-size: 16px;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

#organization_search_clear_button:hover {
    color: #333;
}

#project_search_clear_button {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    font-size: 16px;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

#project_search_clear_button:hover {
    color: #333;
}

#project_form_search_clear_button {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    font-size: 16px;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

#project_form_search_clear_button:hover {
    color: #333;
}

.selected-name.placeholder {
    cursor: default;
}

